calibre/recipes/gulli.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

27 lines
856 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1259599587(BasicNewsRecipe):
title = u'Gulli'
description = 'News from Germany'
language = 'de'
__author__ = 'posativ'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
feeds = [(u'gulli:news', u'http://ticker.gulli.com/rss/')]
remove_tags = [dict(name='div', attrs={'class': ['FloatL', '_forumBox']})]
keep_only_tags = [dict(name='div', attrs={'id': ['_contentLeft']})]
remove_tags_after = [dict(name='div', attrs={'class': ['_bookmark']})]
extra_css = '''
.byline {color:#666;margin-bottom:0;font-size:12px}
.blockquote {color:#030303;font-style:italic;padding-left:15px;}
img {align:center;}
.li {list-style-type: none}
'''