Thread: web2lrf
View Single Post
Old 02-22-2008, 01:54 PM   #183
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the line articles.append You should have a 'date':time.time()

This will give all articles the default date. If you want the correct publication date you should parse the HTML for it.

Note that you can define a cleanup function to logout. Something like

Code:
def cleanup(self):
    self.browser.open('http://wsj.com/logout')
EDIT: Oops should be time.ctime() not time.time()

Last edited by kovidgoyal; 02-22-2008 at 02:06 PM.
kovidgoyal is online now   Reply With Quote