mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
pep8
This commit is contained in:
parent
bf747cac2e
commit
8152a84abb
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python2
|
||||
import re
|
||||
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||
from calibre.ebooks.BeautifulSoup import Comment
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
import re
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from calibre.ebooks.BeautifulSoup import Comment
|
||||
|
||||
|
||||
class PurePC(BasicNewsRecipe):
|
||||
|
@ -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 = [
|
||||
|
@ -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'}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user