| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
__license__ = 'GPL v3' |
| 4 |
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>' |
| 5 |
''' |
| 6 |
www.hanselman.com/blog/ |
| 7 |
''' |
| 8 |
|
| 9 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 10 |
|
| 11 |
|
| 12 |
class ScottHanselman(BasicNewsRecipe): |
| 13 |
title = "Scott Hanselman's Computer Zen" |
| 14 |
__author__ = 'Darko Miletic' |
| 15 |
description = "Scott Hanselman's Thoughts on Programming, Technology, Fatherhood, and Life" |
| 16 |
category = "Scott, Computer, Zen, .NET, C#, Hanselman, Scott, Weblog, Diabetes, Portland, Zimbabwe, ComputerZen.com - Scott Hanselman's Musings" |
| 17 |
publisher = 'Scott Hanselman' |
| 18 |
author = 'Scott Hanselman' |
| 19 |
language = 'en' |
| 20 |
|
| 21 |
oldest_article = 30 |
| 22 |
max_articles_per_feed = 100 |
| 23 |
no_stylesheets = True |
| 24 |
use_embedded_content = True |
| 25 |
encoding = 'utf-8' |
| 26 |
|
| 27 |
html2lrf_options = ['--comment', description, '--category', category, '--publisher', publisher, '--author', author] |
| 28 |
|
| 29 |
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"' |
| 30 |
|
| 31 |
remove_tags = [dict(name=['object', 'link']), dict(name='div', attrs={'class': 'feedflare'})] |
| 32 |
|
| 33 |
feeds = [('Articles', 'http://feeds2.feedburner.com/ScottHanselman')] |