mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 08:03:58 +02:00
Only download nytimes articles from the last 2 days.
This commit is contained in:
parent
69f5e6df6b
commit
ba7f030a88
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ def initialize(profile):
|
|||
profile['temp dir'] = tempfile.mkdtemp(prefix=__appname__+'_')
|
||||
profile['browser'] = login(profile)
|
||||
feeds = get_feeds(profile['browser'])
|
||||
articles = parse_feeds(feeds, profile['browser'], lambda x: x + '?&pagewanted=print')
|
||||
articles = parse_feeds(feeds, profile['browser'], lambda x: x + '?&pagewanted=print',
|
||||
oldest_article=2)
|
||||
index = build_index('The New York Times', articles, profile['temp dir'])
|
||||
profile['url'] = 'file:'+ ('' if iswindows else '//') + index
|
||||
profile['timefmt'] = ' [%a, %d %b, %Y]'
|
||||
|
|
|
|||
Loading…
Reference in a new issue