Debian Codegraph @

recipes/stackoverflow.recipe

raw
1 #!/usr/bin/env python
2
3 __license__ = 'GPL v3'
4 __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
5 '''
6 blog.stackoverflow.com
7 '''
8
9 from calibre.web.feeds.news import BasicNewsRecipe
10
11
12 class StackOverflowBlog(BasicNewsRecipe):
13 title = 'Stack Overflow - Blog'
14 __author__ = 'Darko Miletic'
15 description = 'a programming community exploit'
16 category = 'blog, programming'
17 publisher = 'StackOverflow team'
18 oldest_article = 30
19 language = 'en'
20
21 max_articles_per_feed = 100
22 no_stylesheets = True
23 use_embedded_content = True
24 encoding = 'utf-8'
25
26 html2lrf_options = ['--comment', description, '--category', category, '--publisher', publisher]
27
28 html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
29
30 feeds = [('Articles', 'http://blog.stackoverflow.com/feed/')]