Debian Codegraph @

recipes/oilprice.recipe

raw
1 __license__ = 'GPL v3'
2 __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
3 '''
4 oilprice.com
5 '''
6
7 from calibre.web.feeds.news import BasicNewsRecipe
8
9
10 class OilPrice(BasicNewsRecipe):
11 title = 'Oil Price'
12 __author__ = 'Darko Miletic'
13 description = 'The nr. 1 source for Oil Price Information'
14 publisher = 'oilprice.com'
15 category = 'news, oil, politics, world, usa'
16 oldest_article = 2
17 max_articles_per_feed = 200
18 no_stylesheets = True
19 encoding = 'cp1252'
20 use_embedded_content = False
21 language = 'en'
22 country = 'US'
23 extra_css = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '
24
25 conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language}
26 remove_tags = [dict(name='div', attrs={'class': 'banner'})]
27 keep_only_tags = [dict(name='div', attrs={'id': 'storyContent'})]
28 remove_tags_after = dict(attrs={'id': 'KonaBody'})
29
30 feeds = [('Articles', 'http://www.oilprice.com/rss.xml')]