Debian Codegraph @

recipes/democracy_now.recipe

raw
1 # vim:fileencoding=utf-8
2 from calibre.web.feeds.news import BasicNewsRecipe
3
4
5 class DemocracyNowRecipe(BasicNewsRecipe):
6 title = 'Democracy now!'
7 __author__ = 'Antoine Beaupré'
8 description = 'A daily TV/radio news program, hosted by Amy Goodman and Juan Gonzalez, airing on over 1,100 stations, pioneering the largest community media collaboration in the United States.' # noqa: E501
9 language = 'en'
10 cover_url = 'http://www.democracynow.org/images/dn-logo-for-podcast.png'
11
12 oldest_article = 1
13 max_articles_per_feed = 10
14 publication_type = 'magazine'
15
16 auto_cleanup = False
17 use_embedded_content = False
18 no_stylesheets = True
19 remove_javascript = True
20
21 feeds = [('Daily news', 'http://www.democracynow.org/democracynow.rss')]
22
23 keep_only_tags = [
24 dict(name='div', attrs={'id': 'page'}),
25 ]
26 remove_tags = [
27 dict(name='div', attrs={'id': 'topics_list'}),
28 dict(name='div', attrs={'id': 'header'}),
29 dict(name='div', attrs={'id': 'footer'}),
30 dict(name='div', attrs={'id': 'right'}),
31 dict(name='div', attrs={'id': 'left-panel'}),
32 dict(name='div', attrs={'id': 'top-video-content'}),
33 dict(name='div', attrs={'id': 'google-news-date'}),
34 dict(name='div', attrs={'id': 'story-donate'}),
35 dict(name='div', attrs={'id': 'transcript-expand-collapse'}),
36 dict(name='span', attrs={'class': 'show-links'}),
37 dict(name='span', attrs={'class': 'storyNav'}),
38 dict(name='div', attrs={'class': 'headline_share'}),
39 dict(name='div', attrs={'class': 'mediaBar'}),
40 dict(name='div', attrs={'class': 'shareAndPrinterBar'}),
41 dict(name='div', attrs={'class': 'utility-navigation'}),
42 dict(name='div', attrs={'class': 'bottomContentNav'}),
43 dict(name='div', attrs={'class': 'recentShows'}),
44 dict(name='div', attrs={'class': 'printer-and-transcript-links'}),
45 ]