diff --git a/recipes/icons/mobilna.png b/recipes/icons/mobilna.png deleted file mode 100644 index 05ae171eb9..0000000000 Binary files a/recipes/icons/mobilna.png and /dev/null differ diff --git a/recipes/icons/oclab_pl.png b/recipes/icons/oclab_pl.png deleted file mode 100644 index acd0eb8cc2..0000000000 Binary files a/recipes/icons/oclab_pl.png and /dev/null differ diff --git a/recipes/legeartis.recipe b/recipes/legeartis.recipe index c85d81edac..f38e2ba67c 100644 --- a/recipes/legeartis.recipe +++ b/recipes/legeartis.recipe @@ -1,21 +1,19 @@ #!/usr/bin/env python2 __license__ = 'GPL v3' -__author__ = 'Mori' -__version__ = 'v. 0.1' ''' -olgierd.bblog.pl +czasopismo.legeartis.org ''' from calibre.web.feeds.news import BasicNewsRecipe class LegeArtisRecipe(BasicNewsRecipe): - __author__ = 'Mori' + __author__ = 'Mori, Tomasz D\u0142ugosz' language = 'pl' title = u'Lege Artis' publisher = u'Olgierd Rudak' - description = u'Wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzicie si\u0119 zapyta\u0107' + description = u'Prawie wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzili\u015bcie si\u0119 zapyta\u0107' max_articles_per_feed = 100 @@ -27,17 +25,6 @@ class LegeArtisRecipe(BasicNewsRecipe): ''' feeds = [ - (u'Lege Artis', u'http://olgierd.bblog.pl/rss/rss20.xml') + (u'Lege Artis', u'http://czasopismo.legeartis.org/feed') ] - keep_only_tags = [ - dict(name = 'div', attrs = {'class' : 'post_title'}), - dict(name = 'div', attrs = {'class' : 'post_date'}), - dict(name = 'div', attrs = {'class' : 'post_content'}) - ] - - remove_tags = [ - dict(name = 'div', attrs = {'id' : 'bb_tools'}), - dict(name = 'div', attrs = {'class' : 'post_comments'}), - dict(name = 'object', attrs = {}) - ] diff --git a/recipes/lifehacker_pl.recipe b/recipes/lifehacker_pl.recipe index daf9ab656a..1477bfc209 100644 --- a/recipes/lifehacker_pl.recipe +++ b/recipes/lifehacker_pl.recipe @@ -22,3 +22,7 @@ class lifehacking(BasicNewsRecipe): no_stylesheets=True feeds = [(u'Lifehacker polska', u'http://feeds.feedburner.com/pl_lh')] + + keep_only_tags = [ + dict(name='header', attrs={'class': 'td-post-title'}), + dict(name='div', attrs={'class': 'td-post-content'})] diff --git a/recipes/mobilna.recipe b/recipes/mobilna.recipe deleted file mode 100644 index 60d1d9e3b1..0000000000 --- a/recipes/mobilna.recipe +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' -__copyright__ = 'MrStefan' - -''' -www.mobilna.pl -''' - -from calibre.web.feeds.news import BasicNewsRecipe - -class mobilna(BasicNewsRecipe): - title = u'Mobilna.pl' - __author__ = 'MrStefan ' - language = 'pl' - description =u'twoja mobilna strona' - #masthead_url='' - remove_empty_feeds= True - oldest_article = 7 - max_articles_per_feed = 100 - remove_javascript=True - no_stylesheets=True - use_embedded_content = True - #keep_only_tags =[dict(attrs={'class':'Post'})] - - feeds = [(u'Artykuły', u'http://mobilna.pl/feed/')] diff --git a/recipes/oclab_pl.recipe b/recipes/oclab_pl.recipe deleted file mode 100644 index 240d8f91f6..0000000000 --- a/recipes/oclab_pl.recipe +++ /dev/null @@ -1,37 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ebooks.BeautifulSoup import Comment - -class OCLab(BasicNewsRecipe): - title = u'OCLab.pl' - oldest_article = 7 - max_articles_per_feed = 100 - __author__ = 'fenuks' - description = u'Portal OCLab.pl jest miejscem przyjaznym pasjonatom sprzętu komputerowego, w szczególności overclockerom, które będzie służyć im za aktualną bazę wiedzy o podkręcaniu komputera, źródło aktualnych informacji z rynku oraz opinii na temat sprzętu komputerowego.' - category = 'IT' - language = 'pl' - cover_url= 'http://www.idealforum.ru/attachment.php?attachmentid=7963&d=1316008118' - no_stylesheets = True - keep_only_tags=[dict(id='main')] - remove_tags_after= dict(attrs={'class':'single-postmetadata'}) - remove_tags=[dict(attrs={'class':['single-postmetadata', 'pagebar', 'shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy']})] - feeds = [(u'Wpisy', u'http://oclab.pl/feed/')] - - - def append_page(self, soup, appendtag): - tag=soup.find(attrs={'class':'contentjumpddl'}) - if tag: - nexturl=tag.findAll('option') - for nextpage in nexturl[1:-1]: - soup2 = self.index_to_soup(nextpage['value']) - pagetext = soup2.find(attrs={'class':'single-entry'}) - pos = len(appendtag.contents) - appendtag.insert(pos, pagetext) - for r in appendtag.findAll(attrs={'class':'post-nav-bottom-list'}): - r.extract() - comments = appendtag.findAll(text=lambda text:isinstance(text, Comment)) - for comment in comments: - comment.extract() - - def preprocess_html(self, soup): - self.append_page(soup, soup.body) - return soup