This commit is contained in:
Kovid Goyal 2018-10-19 07:51:25 +05:30
parent bf747cac2e
commit 8152a84abb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python2
import re
from calibre.web.feeds.recipes import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import Comment

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python2
__license__ = 'GPL v3'
import re
from calibre.web.feeds.news import BasicNewsRecipe

View File

@ -1,6 +1,4 @@
import re
from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import Comment
class PurePC(BasicNewsRecipe):

View File

@ -26,8 +26,8 @@ class prawica_recipe(BasicNewsRecipe):
(u'Kolej', u'http://www.rynekinfrastruktury.pl/rss/kolej.xml'),
(u'Energetyka', u'http://www.rynekinfrastruktury.pl/rss/energetyka.xml')
# no news in these feeds since 4 years:
#(u'Porty i lotniska', u'http://www.rynekinfrastruktury.pl/rss/porty-i-lotniska.xml'),
#(u'Komentarze', u'http://www.rynekinfrastruktury.pl/rss/komentarze-i-felietony.xml'),
# (u'Porty i lotniska', u'http://www.rynekinfrastruktury.pl/rss/porty-i-lotniska.xml'),
# (u'Komentarze', u'http://www.rynekinfrastruktury.pl/rss/komentarze-i-felietony.xml'),
]
keep_only_tags = [

View File

@ -26,7 +26,8 @@ class RzeczpospolitaRecipe(BasicNewsRecipe):
keep_only_tags = []
keep_only_tags.append(dict(name='h1', attrs={'id': 'article-title'}))
keep_only_tags.append(dict(name='img', attrs={'class': 'img-responsive article__image'}))
keep_only_tags.append(dict(name='div', attrs={'class': ['article-content', 'article__lead js-voice-read', 'article__content js-voice-read','article__image-desc','article__image-author']}))
keep_only_tags.append(dict(name='div', attrs={'class': ['article-content', 'article__lead js-voice-read',
'article__content js-voice-read','article__image-desc','article__image-author']}))
remove_tags = []
remove_tags.append(dict(name='div', attrs={'class': 'related-articles__wrapper'}))