Debian Codegraph @

recipes/android_com_pl.recipe

raw
1 import re
2
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class Android_com_pl(BasicNewsRecipe):
7 title = 'Android.com.pl'
8 __author__ = 'fenuks'
9 description = 'Android.com.pl - to największe w Polsce centrum Android OS. Znajdziesz tu: nowości, forum, pomoc, recenzje, gry, aplikacje.'
10 category = 'Android, mobile'
11 language = 'pl'
12 cover_url = 'http://android.com.pl/wp-content/themes/android/images/logo.png'
13 oldest_article = 8
14 max_articles_per_feed = 100
15 keep_only_tags = [dict(name='div', attrs={'class': ['title', 'post-content']})]
16 remove_tags_after = [{'class': 'post-content'}]
17 remove_tags = [dict(name='ul', attrs={'class': 'tags small-tags'}), dict(name='a', attrs={'onclick': 'return ss_plugin_loadpopup_js(this);'})]
18 preprocess_regexps = [(re.compile(r'<p>.{,1}</p>', re.DOTALL), lambda match: '')]
19 feeds = [('Android', 'http://android.com.pl/feed/')]