mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-30 15:34:16 +02:00
recipe: toyokeizai: add description about limit
This commit is contained in:
parent
78f9920c3a
commit
4d7bab28b6
1 changed files with 9 additions and 4 deletions
|
|
@ -8,13 +8,13 @@
|
|||
import re
|
||||
|
||||
class Toyokeizai(BasicNewsRecipe):
|
||||
title = u'ToyoKeizai'
|
||||
title = u'ToyoKeizai News'
|
||||
__author__ = 'Hiroshi Miura'
|
||||
oldest_article = 1
|
||||
max_articles_per_feed = 50
|
||||
description = 'Japanese traditional financial and business magazine'
|
||||
description = 'Japanese traditional economy and business magazine, only for advanced subscribers supported'
|
||||
publisher = 'Toyokeizai Shinbun Sha'
|
||||
category = 'news, japan'
|
||||
category = 'economy, magazine, japan'
|
||||
language = 'ja'
|
||||
encoding = 'euc-jp'
|
||||
index = 'http://www.toyokeizai.net/news/'
|
||||
|
|
@ -40,7 +40,7 @@ def parse_index(self):
|
|||
itemd = itt.find('span')
|
||||
newsarticles.append({
|
||||
'title' :itema.string
|
||||
,'date' :re.compile(r"\- ").sub(" ",itemd.string)
|
||||
,'date' :re.compile(r"\- ").sub("",itemd.string)
|
||||
,'url' :'http://www.toyokeizai.net' + itema['href']
|
||||
# ,'description':itema['title']
|
||||
,'description':''
|
||||
|
|
@ -58,4 +58,9 @@ def get_browser(self):
|
|||
res = br.submit()
|
||||
return br
|
||||
|
||||
def is_link_wanted(url,tag):
|
||||
if re.compile(r'page//[0-9]+//$').search(url):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue