fix optyczne.pl

This commit is contained in:
Tomasz Długosz 2018-10-16 23:28:34 +02:00
parent a65292eb46
commit 8b32fc95d4

View File

@ -15,19 +15,16 @@ class OptyczneRecipe(BasicNewsRecipe):
remove_empty_feeds = True remove_empty_feeds = True
no_stylesheets = True no_stylesheets = True
oldest_article = 7 oldest_article = 7
max_articles_per_feed = 100000 max_articles_per_feed = 100
recursions = 0 recursions = 0
no_stylesheets = True no_stylesheets = True
remove_javascript = True remove_javascript = True
keep_only_tags = [] keep_only_tags = dict(name='div', attrs={'class':'main-article-content'})
keep_only_tags.append(dict(name='div', attrs={'class': 'news'}))
remove_tags = [] remove_tags = [dict(name='div', attrs={'class':['banner','colored','content-panel']}),
remove_tags.append(dict(name='div', attrs={'class': 'center'})) dict(name='a', attrs={'class':'icon-link comments-link'})]
remove_tags.append(dict(name='div', attrs={'class': 'news_foto'}))
remove_tags.append(dict(name='div', attrs={'align': 'right'}))
extra_css = ''' extra_css = '''
body {font-family: Arial,Helvetica,sans-serif;} body {font-family: Arial,Helvetica,sans-serif;}
@ -38,5 +35,5 @@ class OptyczneRecipe(BasicNewsRecipe):
.fot{font-size: x-small; color: #666666;} .fot{font-size: x-small; color: #666666;}
''' '''
feeds = [ feeds = [
('Aktualnosci', 'http://www.optyczne.pl/rss.xml'), (u'Aktualności', 'http://www.optyczne.pl/rss.xml'),
] ]