Debian Codegraph @

recipes/novinite_bg.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class AdvancedUserRecipe1329123365(BasicNewsRecipe):
5 title = 'Novinite.bg'
6 __author__ = 'M3 Web'
7 description = 'Real time provider of the latest news from Bulgaria and the world'
8 category = 'Business, Politics, Society, Sports, Crime, Lifestyle, World, Health'
9 oldest_article = 7
10 max_articles_per_feed = 6
11 language = 'bg'
12 encoding = 'windows-1251'
13 no_stylesheets = True
14 remove_javascript = True
15 keep_only_tags = [dict(name='div', attrs={'id': 'content'})]
16 remove_tags = [
17 dict(name='div', attrs={'id': 'text_options'}),
18 dict(name='div', attrs={'id': 'social_shares_top'}),
19 ]
20 remove_tags_after = dict(id='textsize')
21 feeds = [
22 ('Business', 'http://novinite.bg/rss.php?category_id=1'),
23 ('Politics', 'http://novinite.bg/rss.php?category_id=2'),
24 ('Society', 'http://novinite.bg/rss.php?category_id=3'),
25 ('Sport', 'http://novinite.bg/rss.php?category_id=4'),
26 ('Crime', 'http://novinite.bg/rss.php?category_id=5'),
27 ('Lifestyle', 'http://novinite.bg/rss.php?category_id=6'),
28 ('Health', 'http://novinite.bg/rss.php?category_id=7'),
29 ('Other', 'http://novinite.bg/rss.php?category_id=10'),
30 ('World', 'http://novinite.bg/rss.php?category_id=9'),
31 ]