diff --git a/recipes/android_com_pl.recipe b/recipes/android_com_pl.recipe new file mode 100644 index 0000000000..a44d5e560a --- /dev/null +++ b/recipes/android_com_pl.recipe @@ -0,0 +1,12 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Android_com_pl(BasicNewsRecipe): + title = u'Android.com.pl' + __author__ = 'fenuks' + description = 'Android.com.pl - biggest polish Android site' + category = 'Android, mobile' + language = 'pl' + cover_url =u'http://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Android_robot.svg/220px-Android_robot.svg.png' + oldest_article = 8 + max_articles_per_feed = 100 + feeds = [(u'Android', u'http://android.com.pl/component/content/frontpage/frontpage.feed?type=rss')] diff --git a/recipes/bash_org_pl.recipe b/recipes/bash_org_pl.recipe new file mode 100644 index 0000000000..037870ed6c --- /dev/null +++ b/recipes/bash_org_pl.recipe @@ -0,0 +1,15 @@ +from calibre.web.feeds.news import BasicNewsRecipe + + +class Bash_org_pl(BasicNewsRecipe): + title = u'Bash.org.pl' + __author__ = 'fenuks' + description = 'Bash.org.pl - funny quotations from IRC discussions' + category = 'funny quotations, humour' + language = 'pl' + oldest_article = 15 + cover_url = u'http://userlogos.org/files/logos/dzikiosiol/none_0.png' + max_articles_per_feed = 100 + no_stylesheets= True + keep_only_tags= [dict(name='div', attrs={'class':'quote post-content post-body'})] + feeds = [(u'Cytaty', u'http://bash.org.pl/rss')] diff --git a/recipes/cd_action.recipe b/recipes/cd_action.recipe new file mode 100644 index 0000000000..b4cf6b326c --- /dev/null +++ b/recipes/cd_action.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + + +class CD_Action(BasicNewsRecipe): + title = u'CD-Action' + __author__ = 'fenuks' + description = 'cdaction.pl - polish magazine about games site' + category = 'games' + language = 'pl' + oldest_article = 8 + max_articles_per_feed = 100 + no_stylesheets= True + cover_url =u'http://s.cdaction.pl/obrazki/logo-CD-Action_172k9.JPG' + keep_only_tags= dict(id='news_content') + remove_tags_after= dict(name='div', attrs={'class':'tresc'}) + feeds = [(u'Newsy', u'http://www.cdaction.pl/rss_newsy.xml')] diff --git a/recipes/dobreprogamy.recipe b/recipes/dobreprogamy.recipe new file mode 100644 index 0000000000..d9b2db591d --- /dev/null +++ b/recipes/dobreprogamy.recipe @@ -0,0 +1,21 @@ +from calibre.web.feeds.news import BasicNewsRecipe + + +class Dobreprogramy_pl(BasicNewsRecipe): + title = 'Dobreprogramy.pl' + __author__ = 'fenuks' + __licence__ ='GPL v3' + category = 'IT' + language = 'pl' + cover_url = 'http://userlogos.org/files/logos/Karmody/dobreprogramy_01.png' + description = u'Aktualności i blogi z dobreprogramy.pl' + encoding = 'utf-8' + no_stylesheets = True + language = 'pl' + extra_css = '.title {font-size:22px;}' + oldest_article = 8 + max_articles_per_feed = 100 + remove_tags = [dict(name='div', attrs={'class':['komentarze', 'block', 'portalInfo', 'menuBar', 'topBar']})] + keep_only_tags = [dict(name='div', attrs={'class':['mainBar', 'newsContent', 'postTitle title', 'postInfo', 'contentText', 'content']})] + feeds = [(u'Aktualności', 'http://feeds.feedburner.com/dobreprogramy/Aktualnosci'), + ('Blogi', 'http://feeds.feedburner.com/dobreprogramy/BlogCzytelnikow')] diff --git a/recipes/film_web.recipe b/recipes/film_web.recipe new file mode 100644 index 0000000000..0061573742 --- /dev/null +++ b/recipes/film_web.recipe @@ -0,0 +1,40 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Filmweb_pl(BasicNewsRecipe): + title = u'FilmWeb' + __author__ = 'fenuks' + description = 'FilmWeb - biggest polish movie site' + cover_url = 'http://userlogos.org/files/logos/crudus/filmweb.png' + category = 'movies' + language = 'pl' + oldest_article = 8 + max_articles_per_feed = 100 + no_stylesheets= True + extra_css = '.hdrBig {font-size:22px;}' + remove_tags= [dict(name='div', attrs={'class':['recommendOthers']}), dict(name='ul', attrs={'class':'fontSizeSet'})] + keep_only_tags= [dict(name='h1', attrs={'class':'hdrBig'}), dict(name='div', attrs={'class':['newsInfo', 'reviewContent fontSizeCont description']})] + feeds = [(u'Wszystkie newsy', u'http://www.filmweb.pl/feed/news/latest'), + (u'News / Filmy w produkcji', 'http://www.filmweb.pl/feed/news/category/filminproduction'), + (u'News / Festiwale, nagrody i przeglądy', u'http://www.filmweb.pl/feed/news/category/festival'), + (u'News / Seriale', u'http://www.filmweb.pl/feed/news/category/serials'), + (u'News / Box office', u'http://www.filmweb.pl/feed/news/category/boxoffice'), + (u'News / Multimedia', u'http://www.filmweb.pl/feed/news/category/multimedia'), + (u'News / Dystrybucja dvd / blu-ray', u'http://www.filmweb.pl/feed/news/category/video'), + (u'News / Dystrybucja kinowa', u'http://www.filmweb.pl/feed/news/category/cinema'), + (u'News / off', u'http://www.filmweb.pl/feed/news/category/off'), + (u'News / Gry wideo', u'http://www.filmweb.pl/feed/news/category/game'), + (u'News / Organizacje branżowe', u'http://www.filmweb.pl/feed/news/category/organizations'), + (u'News / Internet', u'http://www.filmweb.pl/feed/news/category/internet'), + (u'News / Różne', u'http://www.filmweb.pl/feed/news/category/other'), + (u'News / Kino polskie', u'http://www.filmweb.pl/feed/news/category/polish.cinema'), + (u'News / Telewizja', u'http://www.filmweb.pl/feed/news/category/tv'), + (u'Recenzje redakcji', u'http://www.filmweb.pl/feed/reviews/latest'), + (u'Recenzje użytkowników', u'http://www.filmweb.pl/feed/user-reviews/latest')] + + def skip_ad_pages(self, soup): + skip_tag = soup.find('a', attrs={'class':'welcomeScreenButton'})['href'] + #self.log.warn(skip_tag) + if skip_tag is not None: + return self.index_to_soup(skip_tag, raw=True) + else: + None diff --git a/recipes/gram_pl.recipe b/recipes/gram_pl.recipe new file mode 100644 index 0000000000..091c0bb1dc --- /dev/null +++ b/recipes/gram_pl.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Gram_pl(BasicNewsRecipe): + title = u'Gram.pl' + __author__ = 'fenuks' + description = 'Gram.pl - site about computer games' + category = 'games' + language = 'pl' + oldest_article = 8 + max_articles_per_feed = 100 + no_stylesheets= True + cover_url=u'http://www.gram.pl/www/01/img/grampl_zima.png' + remove_tags= [dict(name='p', attrs={'class':['extraText', 'must-log-in']}), dict(attrs={'class':['el', 'headline', 'post-info']}), dict(name='div', attrs={'class':['twojaOcena', 'comment-body', 'comment-author vcard', 'comment-meta commentmetadata', 'tw_button']}), dict(id=['igit_rpwt_css', 'comments', 'reply-title', 'igit_title'])] + keep_only_tags= [dict(name='div', attrs={'class':['main', 'arkh-postmetadataheader', 'arkh-postcontent', 'post', 'content', 'news_header', 'news_subheader', 'news_text']}), dict(attrs={'class':['contentheading', 'contentpaneopen']})] + feeds = [(u'gram.pl - informacje', u'http://www.gram.pl/feed_news.asp'), + (u'gram.pl - publikacje', u'http://www.gram.pl/feed_news.asp?type=articles')] diff --git a/recipes/icons/android_com_pl.png b/recipes/icons/android_com_pl.png new file mode 100644 index 0000000000..d68bac8810 Binary files /dev/null and b/recipes/icons/android_com_pl.png differ diff --git a/recipes/icons/bash_org_pl.png b/recipes/icons/bash_org_pl.png new file mode 100644 index 0000000000..5fc18a38e0 Binary files /dev/null and b/recipes/icons/bash_org_pl.png differ diff --git a/recipes/icons/cd_action.png b/recipes/icons/cd_action.png new file mode 100644 index 0000000000..823e09a43e Binary files /dev/null and b/recipes/icons/cd_action.png differ diff --git a/recipes/icons/dobreprogamy.png b/recipes/icons/dobreprogamy.png new file mode 100644 index 0000000000..fcb658cfe1 Binary files /dev/null and b/recipes/icons/dobreprogamy.png differ diff --git a/recipes/icons/film_web.png b/recipes/icons/film_web.png new file mode 100644 index 0000000000..3ddcdf1cde Binary files /dev/null and b/recipes/icons/film_web.png differ diff --git a/recipes/icons/gram_pl.png b/recipes/icons/gram_pl.png new file mode 100644 index 0000000000..0a87f28825 Binary files /dev/null and b/recipes/icons/gram_pl.png differ diff --git a/recipes/icons/niebezpiecznik.png b/recipes/icons/niebezpiecznik.png new file mode 100644 index 0000000000..4188d91d36 Binary files /dev/null and b/recipes/icons/niebezpiecznik.png differ diff --git a/recipes/icons/wnp.png b/recipes/icons/wnp.png new file mode 100644 index 0000000000..3781f671cd Binary files /dev/null and b/recipes/icons/wnp.png differ diff --git a/recipes/niebezpiecznik.recipe b/recipes/niebezpiecznik.recipe new file mode 100644 index 0000000000..b33a0a3513 --- /dev/null +++ b/recipes/niebezpiecznik.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Niebezpiecznik_pl(BasicNewsRecipe): + title = u'Niebezpiecznik.pl' + __author__ = 'fenuks' + description = 'Niebezpiecznik.pl' + category = 'hacking, IT' + language = 'pl' + oldest_article = 8 + max_articles_per_feed = 100 + no_stylesheets = True + cover_url =u'http://userlogos.org/files/logos/Karmody/niebezpiecznik_01.png' + remove_tags=[dict(name='div', attrs={'class':['sociable']}), dict(name='h4'), dict(attrs={'class':'similar-posts'})] + keep_only_tags= [dict(name='div', attrs={'class':['title', 'entry']})] + feeds = [(u'Wiadomości', u'http://feeds.feedburner.com/niebezpiecznik/'), + ('Blog', 'http://feeds.feedburner.com/niebezpiecznik/linkblog/')] diff --git a/recipes/wnp.recipe b/recipes/wnp.recipe new file mode 100644 index 0000000000..e53e4cc66b --- /dev/null +++ b/recipes/wnp.recipe @@ -0,0 +1,21 @@ +from calibre.web.feeds.news import BasicNewsRecipe + + +class AdvancedUserRecipe1312886443(BasicNewsRecipe): + title = u'WNP' + cover_url= 'http://k.wnp.pl/images/wnpLogo.gif' + __author__ = 'fenuks' + description = u'Wirtualny Nowy Przemysł' + category = 'economy' + language = 'pl' + oldest_article = 8 + max_articles_per_feed = 100 + no_stylesheets= True + keep_only_tags = dict(name='div', attrs={'id':'contentText'}) + feeds = [(u'Wiadomości gospodarcze', u'http://www.wnp.pl/rss/serwis_rss.xml'), + (u'Serwis Energetyka - Gaz', u'http://www.wnp.pl/rss/serwis_rss_1.xml'), + (u'Serwis Nafta - Chemia', u'http://www.wnp.pl/rss/serwis_rss_2.xml'), + (u'Serwis Hutnictwo', u'http://www.wnp.pl/rss/serwis_rss_3.xml'), + (u'Serwis Górnictwo', u'http://www.wnp.pl/rss/serwis_rss_4.xml'), + (u'Serwis Logistyka', u'http://www.wnp.pl/rss/serwis_rss_5.xml'), + (u'Serwis IT', u'http://www.wnp.pl/rss/serwis_rss_6.xml')]