New recipes for JavaLobyy, InfoWorld and ServerSide by Rick Kellog. Fixes #3543 (New Recipes)

This commit is contained in:
Kovid Goyal 2009-09-27 12:37:29 -06:00
parent 22594dd2d0
commit 8ae1ab6d6c
4 changed files with 104 additions and 1 deletions

View File

@ -58,7 +58,8 @@ recipe_modules = ['recipe_' + r for r in (
'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga', 'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga',
'intelligencer', 'theoldfoodie', 'hln_be', 'honvedelem', 'intelligencer', 'theoldfoodie', 'hln_be', 'honvedelem',
'the_new_republic', 'philly', 'salon', 'tweakers', 'smashing', 'the_new_republic', 'philly', 'salon', 'tweakers', 'smashing',
'thestar', 'business_standard', 'lemonde_dip', 'thestar', 'business_standard', 'lemonde_dip', 'javalobby',
'serverside', 'infoworld'
)] )]

View File

@ -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

View File

@ -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

View File

@ -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=')