This commit is contained in:
Kovid Goyal 2009-04-20 10:48:48 -07:00
parent 96ec49496e
commit 8dd974ff42
3 changed files with 14 additions and 8 deletions

View File

@ -6,6 +6,8 @@ __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
www.codinghorror.com/blog/ www.codinghorror.com/blog/
''' '''
from calibre.web.feeds.news import BasicNewsRecipe
class CodingHorror(BasicNewsRecipe): class CodingHorror(BasicNewsRecipe):
title = 'Coding Horror' title = 'Coding Horror'
__author__ = 'Darko Miletic' __author__ = 'Darko Miletic'
@ -25,13 +27,13 @@ class CodingHorror(BasicNewsRecipe):
, '--publisher', publisher , '--publisher', publisher
, '--author' , author , '--author' , author
] ]
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"' html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
remove_tags = [ remove_tags = [
dict(name=['object','link']) dict(name=['object','link'])
,dict(name='div',attrs={'class':'feedflare'}) ,dict(name='div',attrs={'class':'feedflare'})
] ]
feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )] feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )]

View File

@ -6,6 +6,8 @@ __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
www.hanselman.com/blog/ www.hanselman.com/blog/
''' '''
from calibre.web.feeds.news import BasicNewsRecipe
class ScottHanselman(BasicNewsRecipe): class ScottHanselman(BasicNewsRecipe):
title = "Scott Hanselman's Computer Zen" title = "Scott Hanselman's Computer Zen"
__author__ = 'Darko Miletic' __author__ = 'Darko Miletic'
@ -25,13 +27,13 @@ class ScottHanselman(BasicNewsRecipe):
, '--publisher', publisher , '--publisher', publisher
, '--author' , author , '--author' , author
] ]
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"' html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
remove_tags = [ remove_tags = [
dict(name=['object','link']) dict(name=['object','link'])
,dict(name='div',attrs={'class':'feedflare'}) ,dict(name='div',attrs={'class':'feedflare'})
] ]
feeds = [(u'Articles', u'http://feeds2.feedburner.com/ScottHanselman' )] feeds = [(u'Articles', u'http://feeds2.feedburner.com/ScottHanselman' )]

View File

@ -6,6 +6,8 @@ __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
blog.stackoverflow.com blog.stackoverflow.com
''' '''
from calibre.web.feeds.news import BasicNewsRecipe
class StackOverflowBlog(BasicNewsRecipe): class StackOverflowBlog(BasicNewsRecipe):
title = 'Stack Overflow - Blog' title = 'Stack Overflow - Blog'
__author__ = 'Darko Miletic' __author__ = 'Darko Miletic'
@ -23,8 +25,8 @@ class StackOverflowBlog(BasicNewsRecipe):
, '--category' , category , '--category' , category
, '--publisher', publisher , '--publisher', publisher
] ]
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"' html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
feeds = [(u'Articles', u'http://blog.stackoverflow.com/feed/' )] feeds = [(u'Articles', u'http://blog.stackoverflow.com/feed/' )]