add reuters japan recipe

fix recipe names
  - nikkei news
  - mainichi news
This commit is contained in:
Hiroshi Miura 2010-11-21 21:33:44 +09:00
parent 439c1548c2
commit bedcdac5fb
6 changed files with 30 additions and 5 deletions

View File

@ -20,5 +20,5 @@ class MainichiDailyNews(BasicNewsRecipe):
remove_tags_before = {'class':"NewsTitle"} remove_tags_before = {'class':"NewsTitle"}
remove_tags = [{'class':"RelatedArticle"}] remove_tags = [{'class':"RelatedArticle"}]
remove_tags_after = {'class':"ArticleLower"} remove_tags_after = {'class':"Credit"}

View File

@ -12,5 +12,5 @@ class MainichiDailyITNews(BasicNewsRecipe):
remove_tags_before = {'class':"NewsTitle"} remove_tags_before = {'class':"NewsTitle"}
remove_tags = [{'class':"RelatedArticle"}] remove_tags = [{'class':"RelatedArticle"}]
remove_tags_after = {'class':"ArticleLower"} remove_tags_after = {'class':"Credit"}

View File

@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
class NikkeiNet_sub_economy(BasicNewsRecipe): class NikkeiNet_sub_economy(BasicNewsRecipe):
title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Sports)' title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Economy)'
__author__ = 'Hiroshi Miura' __author__ = 'Hiroshi Miura'
description = 'News and current market affairs from Japan' description = 'News and current market affairs from Japan'
needs_subscription = True needs_subscription = True

View File

@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
class NikkeiNet_sub_industory(BasicNewsRecipe): class NikkeiNet_sub_industory(BasicNewsRecipe):
title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Sports)' title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Industory)'
__author__ = 'Hiroshi Miura' __author__ = 'Hiroshi Miura'
description = 'News and current market affairs from Japan' description = 'News and current market affairs from Japan'
needs_subscription = True needs_subscription = True

View File

@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
class NikkeiNet_sub_life(BasicNewsRecipe): class NikkeiNet_sub_life(BasicNewsRecipe):
title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Sports)' title = u'\u65e5\u7d4c\u65b0\u805e\u96fb\u5b50\u7248(Life)'
__author__ = 'Hiroshi Miura' __author__ = 'Hiroshi Miura'
description = 'News and current market affairs from Japan' description = 'News and current market affairs from Japan'
needs_subscription = True needs_subscription = True

View File

@ -0,0 +1,25 @@
from calibre.web.feeds.news import BasicNewsRecipe
class ReutersJa(BasicNewsRecipe):
title = 'Reuters(Japan)'
description = 'Global news in Japanese'
__author__ = 'Hiroshi Miura'
use_embedded_content = False
language = 'ja'
max_articles_per_feed = 10
remove_javascript = True
feeds = [ ('Top Stories', 'http://feeds.reuters.com/reuters/JPTopNews?format=xml'),
('World News', 'http://feeds.reuters.com/reuters/JPWorldNews?format=xml'),
('Business News', 'http://feeds.reuters.com/reuters/JPBusinessNews?format=xml'),
('Technology News', 'http://feeds.reuters.com/reuters/JPTechnologyNews?format=xml'),
('Oddly Enough News', 'http://feeds.reuters.com/reuters/JPOddlyEnoughNews?format=xml')
]
remove_tags_before = {'class':"article primaryContent"}
remove_tags = [ dict(id="banner"),
dict(id="autilities"),
dict(id="textSizer")
]
remove_tags_after = dict(id="copyrightNotice")