mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
recipes: improve elektroda_pl
This commit is contained in:
parent
53c5ff5daa
commit
e7dd6770e7
@ -12,11 +12,12 @@ class Elektroda(BasicNewsRecipe):
|
|||||||
language = 'pl'
|
language = 'pl'
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_tags_before = dict(name='span', attrs={'class': 'postbody'})
|
|
||||||
remove_tags_after = dict(name='td', attrs={'class': 'spaceRow'})
|
|
||||||
remove_tags = [dict(name='a', attrs={'href': '#top'})]
|
|
||||||
feeds = [(u'Elektroda', u'http://www.elektroda.pl/rtvforum/rss.php')]
|
feeds = [(u'Elektroda', u'http://www.elektroda.pl/rtvforum/rss.php')]
|
||||||
|
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'class': 'title-wrap pull-left'}),
|
||||||
|
dict(name='ul', attrs={'class': 'topic-lists clearfix'})
|
||||||
|
]
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
def preprocess_html(self, soup):
|
||||||
tag = soup.find('span', attrs={'class': 'postbody'})
|
tag = soup.find('span', attrs={'class': 'postbody'})
|
||||||
if tag:
|
if tag:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user