diff --git a/src/calibre/gui2/images/news/coding_horror.png b/src/calibre/gui2/images/news/coding_horror.png new file mode 100644 index 0000000000..bf1320847c Binary files /dev/null and b/src/calibre/gui2/images/news/coding_horror.png differ diff --git a/src/calibre/gui2/images/news/scott_hanselman.png b/src/calibre/gui2/images/news/scott_hanselman.png new file mode 100644 index 0000000000..3116aabf2e Binary files /dev/null and b/src/calibre/gui2/images/news/scott_hanselman.png differ diff --git a/src/calibre/gui2/images/news/stackoverflow.png b/src/calibre/gui2/images/news/stackoverflow.png new file mode 100644 index 0000000000..fe80e5fa4b Binary files /dev/null and b/src/calibre/gui2/images/news/stackoverflow.png differ diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 405fd265a7..1edef4ad80 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -40,7 +40,8 @@ recipe_modules = ['recipe_' + r for r in ( 'krstarica', 'krstarica_en', 'tanjug', 'laprensa_ni', 'azstarnet', 'corriere_della_sera_it', 'corriere_della_sera_en', 'msdnmag_en', 'moneynews', 'der_standard', 'diepresse', 'nzz_ger', 'hna', - 'seattle_times', + 'seattle_times', 'scott_hanselman', 'coding_horror', + 'stackoverflow' )] import re, imp, inspect, time, os diff --git a/src/calibre/web/feeds/recipes/recipe_coding_horror.py b/src/calibre/web/feeds/recipes/recipe_coding_horror.py new file mode 100644 index 0000000000..ee2d0f3cf7 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_coding_horror.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Darko Miletic ' +''' +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' )] + \ No newline at end of file diff --git a/src/calibre/web/feeds/recipes/recipe_scott_hanselman.py b/src/calibre/web/feeds/recipes/recipe_scott_hanselman.py new file mode 100644 index 0000000000..7b80a5b73f --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_scott_hanselman.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Darko Miletic ' +''' +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' )] + \ No newline at end of file diff --git a/src/calibre/web/feeds/recipes/recipe_stackoverflow.py b/src/calibre/web/feeds/recipes/recipe_stackoverflow.py new file mode 100644 index 0000000000..00fe7ce3e9 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_stackoverflow.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Darko Miletic ' +''' +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/' )] + \ No newline at end of file