mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipes for various computing blogs by Darko Miletic
This commit is contained in:
parent
062fb907e3
commit
96ec49496e
BIN
src/calibre/gui2/images/news/coding_horror.png
Normal file
BIN
src/calibre/gui2/images/news/coding_horror.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 971 B |
BIN
src/calibre/gui2/images/news/scott_hanselman.png
Normal file
BIN
src/calibre/gui2/images/news/scott_hanselman.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 966 B |
BIN
src/calibre/gui2/images/news/stackoverflow.png
Normal file
BIN
src/calibre/gui2/images/news/stackoverflow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
@ -40,7 +40,8 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'krstarica', 'krstarica_en', 'tanjug', 'laprensa_ni', 'azstarnet',
|
'krstarica', 'krstarica_en', 'tanjug', 'laprensa_ni', 'azstarnet',
|
||||||
'corriere_della_sera_it', 'corriere_della_sera_en', 'msdnmag_en',
|
'corriere_della_sera_it', 'corriere_della_sera_en', 'msdnmag_en',
|
||||||
'moneynews', 'der_standard', 'diepresse', 'nzz_ger', 'hna',
|
'moneynews', 'der_standard', 'diepresse', 'nzz_ger', 'hna',
|
||||||
'seattle_times',
|
'seattle_times', 'scott_hanselman', 'coding_horror',
|
||||||
|
'stackoverflow'
|
||||||
)]
|
)]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
37
src/calibre/web/feeds/recipes/recipe_coding_horror.py
Normal file
37
src/calibre/web/feeds/recipes/recipe_coding_horror.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
www.codinghorror.com/blog/
|
||||||
|
'''
|
||||||
|
|
||||||
|
class CodingHorror(BasicNewsRecipe):
|
||||||
|
title = 'Coding Horror'
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = 'programming and human factors - Jeff Atwood'
|
||||||
|
category = 'blog, programming'
|
||||||
|
publisher = 'Jeff Atwood'
|
||||||
|
author = 'Jeff Atwood'
|
||||||
|
oldest_article = 30
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
use_embedded_content = True
|
||||||
|
encoding = 'cp1252'
|
||||||
|
|
||||||
|
html2lrf_options = [
|
||||||
|
'--comment' , description
|
||||||
|
, '--category' , category
|
||||||
|
, '--publisher', publisher
|
||||||
|
, '--author' , author
|
||||||
|
]
|
||||||
|
|
||||||
|
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name=['object','link'])
|
||||||
|
,dict(name='div',attrs={'class':'feedflare'})
|
||||||
|
]
|
||||||
|
|
||||||
|
feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )]
|
||||||
|
|
37
src/calibre/web/feeds/recipes/recipe_scott_hanselman.py
Normal file
37
src/calibre/web/feeds/recipes/recipe_scott_hanselman.py
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
www.hanselman.com/blog/
|
||||||
|
'''
|
||||||
|
|
||||||
|
class ScottHanselman(BasicNewsRecipe):
|
||||||
|
title = "Scott Hanselman's Computer Zen"
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = "Scott Hanselman's Thoughts on Programming, Technology, Fatherhood, and Life"
|
||||||
|
category = "Scott, Computer, Zen, .NET, C#, Hanselman, Scott, Weblog, Diabetes, Portland, Zimbabwe, ComputerZen.com - Scott Hanselman's Musings"
|
||||||
|
publisher = 'Scott Hanselman'
|
||||||
|
author = 'Scott Hanselman'
|
||||||
|
oldest_article = 30
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
use_embedded_content = True
|
||||||
|
encoding = 'utf-8'
|
||||||
|
|
||||||
|
html2lrf_options = [
|
||||||
|
'--comment' , description
|
||||||
|
, '--category' , category
|
||||||
|
, '--publisher', publisher
|
||||||
|
, '--author' , author
|
||||||
|
]
|
||||||
|
|
||||||
|
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name=['object','link'])
|
||||||
|
,dict(name='div',attrs={'class':'feedflare'})
|
||||||
|
]
|
||||||
|
|
||||||
|
feeds = [(u'Articles', u'http://feeds2.feedburner.com/ScottHanselman' )]
|
||||||
|
|
30
src/calibre/web/feeds/recipes/recipe_stackoverflow.py
Normal file
30
src/calibre/web/feeds/recipes/recipe_stackoverflow.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
blog.stackoverflow.com
|
||||||
|
'''
|
||||||
|
|
||||||
|
class StackOverflowBlog(BasicNewsRecipe):
|
||||||
|
title = 'Stack Overflow - Blog'
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = 'a programming community exploit'
|
||||||
|
category = 'blog, programming'
|
||||||
|
publisher = 'StackOverflow team'
|
||||||
|
oldest_article = 30
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
use_embedded_content = True
|
||||||
|
encoding = 'utf-8'
|
||||||
|
|
||||||
|
html2lrf_options = [
|
||||||
|
'--comment' , description
|
||||||
|
, '--category' , category
|
||||||
|
, '--publisher', publisher
|
||||||
|
]
|
||||||
|
|
||||||
|
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
||||||
|
|
||||||
|
feeds = [(u'Articles', u'http://blog.stackoverflow.com/feed/' )]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user