diff --git a/recipes/fotoblogia_pl.recipe b/recipes/fotoblogia_pl.recipe new file mode 100644 index 0000000000..99df46419a --- /dev/null +++ b/recipes/fotoblogia_pl.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Fotoblogia_pl(BasicNewsRecipe): + title = u'Fotoblogia.pl' + __author__ = 'fenuks' + category = 'photography' + language = 'pl' + masthead_url = 'http://img.interia.pl/komputery/nimg/u/0/fotoblogia21.jpg' + cover_url= 'http://fotoblogia.pl/images/2009/03/fotoblogia2.jpg' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + keep_only_tags=[dict(name='div', attrs={'class':'post-view post-standard'})] + remove_tags=[dict(attrs={'class':['external fotoblogia', 'categories', 'tags']})] + feeds = [(u'Wszystko', u'http://fotoblogia.pl/feed/rss2')] diff --git a/recipes/historia_news.recipe b/recipes/historia_news.recipe new file mode 100644 index 0000000000..4eca8ade91 --- /dev/null +++ b/recipes/historia_news.recipe @@ -0,0 +1,20 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class historia_news(BasicNewsRecipe): + title = u'historia-news' + __author__ = 'fenuks' + description = u'Historia-news to portal dla ludzi kochających historię. Najnowsze newsy z historii bliższej i dalszej, archeologii, paleontologii oraz ciekawostki i podcasty z historii kultury, sportu, motoryzacji i inne.' + masthead_url = 'http://historia-news.pl/templates/hajak4/images/header.jpg' + cover_url= 'http://www.historia-news.pl/templates/hajak4/images/header.jpg' + category = 'history' + language = 'pl' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + remove_empty_feeds = True + remove_tags=[dict(name='form'), dict(name='img', attrs={'alt':'Print'}), dict(attrs={'class':['commbutt', 'cpr']}), dict(id=['plusone', 'facebook'])] + feeds = [(u'Wiadomo\u015bci', u'http://historia-news.pl/wiadomoci.feed?type=rss'), (u'Artyku\u0142y', u'http://historia-news.pl/artykuy.feed?type=rss')] + + + def print_version(self, url): + return url + '?tmpl=component&print=1&layout=default&page=' diff --git a/recipes/icons/fotoblogia_pl.png b/recipes/icons/fotoblogia_pl.png new file mode 100644 index 0000000000..0204a04e62 Binary files /dev/null and b/recipes/icons/fotoblogia_pl.png differ diff --git a/recipes/icons/historia_news.png b/recipes/icons/historia_news.png new file mode 100644 index 0000000000..79b1b52859 Binary files /dev/null and b/recipes/icons/historia_news.png differ diff --git a/recipes/icons/swiat_obrazu.png b/recipes/icons/swiat_obrazu.png new file mode 100644 index 0000000000..a61662a864 Binary files /dev/null and b/recipes/icons/swiat_obrazu.png differ diff --git a/recipes/swiat_obrazu.recipe b/recipes/swiat_obrazu.recipe new file mode 100644 index 0000000000..68740fa4dd --- /dev/null +++ b/recipes/swiat_obrazu.recipe @@ -0,0 +1,25 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Swiat_Obrazu(BasicNewsRecipe): + title = u'Swiat Obrazu' + __author__ = 'fenuks' + description = u'Internetowy Dziennik o Fotografii i Wideo www.SwiatObrazu.pl to źródło informacji o technice fotografii i wideo, o sprzęcie najbardziej znanych i uznanych firm: Canon, Nikon, Sony, Hasselblad i wielu innych. Znajdziecie tu programy do obróbki zdjęć, forum foto i forum wideo i galerie zdjęć. Codziennie najświeższe informacje: aktualności, testy, poradniki, wywiady, felietony. Swiatobrazu.pl stale organizuje konkursy oraz warsztaty fotograficzne i wideo.' + category = 'photography' + masthead_url = 'http://www.swiatobrazu.pl/img/logo.jpg' + cover_url = 'http://www.swiatobrazu.pl/img/logo.jpg' + language = 'pl' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + remove_javascript= True + use_embedded_content = False + feeds = [(u'Wszystko', u'http://www.swiatobrazu.pl/rss')] + + def print_version(self, url): + return url + ',drukuj' + + def image_url_processor(self, baseurl, url): + if 'http://' not in url or 'https://' not in url: + return 'http://www.swiatobrazu.pl' + url[5:] + else: + return url