Debian Codegraph @

recipes/publicdomainreview_org.recipe

raw
1 import re
2
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class PublicDomainReview(BasicNewsRecipe):
7 title = 'The Public Domain Review'
8 __author__ = 'fenuks'
9 description = 'Online journal dedicated to showcasing the most interesting and unusual out-of-copyright works available on the web'
10 cover_url = 'http://publicdomainreview.org/wp-content/themes/pdr/assets/img/pdr-logo.gif'
11 category = 'culture'
12 language = 'en'
13 encoding = 'utf-8'
14 oldest_article = 14
15 max_articles_per_feed = 100
16 no_stylesheets = True
17 remove_empty_feeds = True
18 ignore_duplicate_articles = {'title', 'url'}
19 remove_javascript = True
20 use_embedded_content = False
21 # extra_css = ''
22 # preprocess_regexps = []
23 # remove_attributes = ['style',]
24 keep_only_tags = [dict(name='article', attrs={'class': re.compile(r'post-\d+')})]
25 remove_tags = [dict(attrs={'class': 'synved-social-container synved-social-container-share'})]
26 # remove_tags_before = dict()
27 remove_tags_after = dict(name='div', attrs={'class': 'entry-content'})
28 feeds = [('Posts', 'http://publicdomainreview.org/feed/')]