Debian Codegraph @

recipes/theonlinephotographer.recipe

raw
1 __license__ = 'GPL v3'
2 __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
3 '''
4 theonlinephotographer.typepad.com
5 '''
6
7 from calibre.web.feeds.news import BasicNewsRecipe
8
9
10 class theonlinephotographer(BasicNewsRecipe):
11 title = 'The Online Photographer'
12 __author__ = 'Darko Miletic'
13 description = 'A photography news and information website in the form of a weblog with multiple authors who write on a variety of photography and art-photography related issues.' # noqa: E501
14 publisher = 'The Online Photographer'
15 category = 'news, blog, photograph, international'
16 oldest_article = 15
17 max_articles_per_feed = 100
18 no_stylesheets = True
19 remove_empty_feeds = True
20 use_embedded_content = False
21 encoding = 'utf8'
22 language = 'en'
23
24 extra_css = ' body{font-family: Georgia,"Times New Roman",serif } '
25
26 conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language}
27
28 feeds = [('Articles', 'http://feeds.feedburner.com/typepad/ZSjz')]
29 remove_tags_before = dict(name='h3', attrs={'class': 'entry-header'})
30 remove_tags_after = dict(name='div', attrs={'class': 'entry-footer'})
31 remove_tags = [dict(name=['object', 'link', 'iframe'])]
32
33 def preprocess_html(self, soup):
34 return self.adeify_images(soup)