mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add reuters japan recipe
fix recipe names - nikkei news - mainichi news
This commit is contained in:
parent
439c1548c2
commit
bedcdac5fb
@ -20,5 +20,5 @@ class MainichiDailyNews(BasicNewsRecipe):
|
||||
|
||||
remove_tags_before = {'class':"NewsTitle"}
|
||||
remove_tags = [{'class':"RelatedArticle"}]
|
||||
remove_tags_after = {'class':"ArticleLower"}
|
||||
remove_tags_after = {'class':"Credit"}
|
||||
|
||||
|
@ -12,5 +12,5 @@ class MainichiDailyITNews(BasicNewsRecipe):
|
||||
|
||||
remove_tags_before = {'class':"NewsTitle"}
|
||||
remove_tags = [{'class':"RelatedArticle"}]
|
||||
remove_tags_after = {'class':"ArticleLower"}
|
||||
remove_tags_after = {'class':"Credit"}
|
||||
|
||||
|
@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
|
||||
|
||||
|
||||
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'
|
||||
description = 'News and current market affairs from Japan'
|
||||
needs_subscription = True
|
||||
|
@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
|
||||
|
||||
|
||||
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'
|
||||
description = 'News and current market affairs from Japan'
|
||||
needs_subscription = True
|
||||
|
@ -14,7 +14,7 @@ from calibre.ptempfile import PersistentTemporaryFile
|
||||
|
||||
|
||||
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'
|
||||
description = 'News and current market affairs from Japan'
|
||||
needs_subscription = True
|
||||
|
25
resources/recipes/reuters_ja.recipe
Normal file
25
resources/recipes/reuters_ja.recipe
Normal 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")
|
Loading…
x
Reference in New Issue
Block a user