diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index c1e7414a79..cb52d41111 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -58,7 +58,8 @@ recipe_modules = ['recipe_' + r for r in ( 'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga', 'intelligencer', 'theoldfoodie', 'hln_be', 'honvedelem', 'the_new_republic', 'philly', 'salon', 'tweakers', 'smashing', - 'thestar', 'business_standard', 'lemonde_dip', + 'thestar', 'business_standard', 'lemonde_dip', 'javalobby', + 'serverside', 'infoworld' )] diff --git a/src/calibre/web/feeds/recipes/recipe_infoworld.py b/src/calibre/web/feeds/recipes/recipe_infoworld.py new file mode 100644 index 0000000000..b98649eeda --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_infoworld.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Rick Kellogg' +''' +Infoworld.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Engadget(BasicNewsRecipe): + title = u'Infoworld.com' + __author__ = 'Rick Kellogg' + description = 'news' + language = 'en' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + + remove_tags = [ dict(name='div', attrs={'class':["articleTools clearfix","relatedContent","pagination clearfix","addResources"]}), + dict(name='div', attrs={'id':["post-socialPromoBlock"]})] + + keep_only_tags = [dict(name='div', attrs={'class':["article"]})] + + feeds = [ (u'Top Tech Stories', u'http://infoworld.com/homepage/feed'), + (u'Today\'s Tech Headlines', u'http://www.infoworld.com/news/feed') ] + + def get_article_url(self, article): + + url = article.get('link', None) + + return url + + diff --git a/src/calibre/web/feeds/recipes/recipe_javalobby.py b/src/calibre/web/feeds/recipes/recipe_javalobby.py new file mode 100644 index 0000000000..55198e8321 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_javalobby.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Rick Kellogg' +''' +java.dzone.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Engadget(BasicNewsRecipe): + title = u'Javalobby' + __author__ = 'Rick Kellogg' + description = 'news' + language = 'en' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + + remove_tags = [ dict(name='div', attrs={'class':["fivestar-static-form-item","relatedContent","pagination clearfix","addResources"]}), + dict(name='div', attrs={'id':["comments"]})] + + keep_only_tags = [dict(name='div', attrs={'id':["article"]})] + + feeds = [ (u'news', u'http://feeds.dzone.com/javalobby/frontpage')] + + def get_article_url(self, article): + + url = article.get('link', None) + + return url + + diff --git a/src/calibre/web/feeds/recipes/recipe_serverside.py b/src/calibre/web/feeds/recipes/recipe_serverside.py new file mode 100644 index 0000000000..13a56e772e --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_serverside.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Rick Kellogg' +''' +TheServerSide.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Engadget(BasicNewsRecipe): + title = u'TheServerSide.com' + __author__ = 'Rick Kellogg' + description = 'news' + language = 'en' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + + remove_tags = [ dict(name='table', attrs={'class':["head"]})] + + feeds = [ (u'News', u'http://feeds.feedburner.com/techtarget/tsscom/home')] + + def get_article_url(self, article): + + url = article.get('guid', None) + + return url + + def print_version(self, url): + return url.replace('http://www.theserverside.com/news/thread.tss?thread_id=', 'http://www.theserverside.com/common/printthread.tss?thread_id=') +