Debian Codegraph @

recipes/nol.recipe

raw
1 ##########################################################################
2 # Description: http://nol.hu/ RSS channel
3 # Author: Bigpapa ([email protected])
4 # Date: 2011.12.18. - V1.1
5 ##########################################################################
6
7 from calibre.web.feeds.recipes import BasicNewsRecipe
8
9
10 class NOL(BasicNewsRecipe):
11 title = 'NOL'
12 __author__ = 'Bigpapa'
13 oldest_article = 5
14 # Az adott e-bookban tarolt cikkek feedenkenti maximalis szamat adja meg.
15 max_articles_per_feed = 5
16 no_stylesheets = True
17 use_embedded_content = False
18 encoding = 'utf8'
19 language = 'hu'
20 publication_type = 'newsportal'
21
22 conversion_options = {
23 'linearize_tables': True,
24 }
25
26 keep_only_tags = [dict(name='table', attrs={'class': ['article-box']})]
27
28 remove_tags = [
29 dict(
30 name='div', attrs={'class': ['h', 'ad-container-outer', 'tags noborder', 'ad-container-inner', 'image-container-lead', 'tags', 'related-container']}
31 ),
32 dict(name='h4'),
33 dict(name='tfoot'),
34 dict(name='td', attrs={'class': ['foot']}),
35 dict(name='span', attrs={'class': ['image-container-caption']}),
36 ]
37
38 feeds = [
39 ('Belf\xf6ld', 'http://nol.hu/feed/belfold.rss'),
40 ('K\xfclf\xf6ld', 'http://nol.hu/feed/kulfold.rss'),
41 ('Gazdas\xe1g', 'http://nol.hu/feed/gazdasag.rss'),
42 ('V\xe9lem\xe9ny', 'http://nol.hu/feed/velemeny.rss'),
43 ('Kult\xfara', 'http://nol.hu/feed/kult.rss'),
44 ('Tud/Tech', 'http://nol.hu/feed/tud-tech.rss'),
45 ('Sport', 'http://nol.hu/feed/sport.rss'),
46 ('Noller', 'http://nol.hu/feed/noller.rss'),
47 ('Mozaik', 'http://nol.hu/feed/mozaik.rss'),
48 ('Utaz\xe1s', 'http://nol.hu/feed/utazas.rss'),
49 ('Aut\xf3', 'http://nol.hu/feed/auto.rss'),
50 ('Voks', 'http://nol.hu/feed/voks.rss'),
51 ]