View Single Post
Old 01-25-2008, 05:43 PM   #25
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: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Deputy-Dawg

Why not let the Christian Science Monitors servers figure out the date mapping for you. Here's some code that should do just that

Code:
def print_version(self, url):
    resolved_url = self.browser.open(url).geturl()
    return resolved_url.strip()[:-1]
It's a little slow as it involves going out to the network, but its reliable.

As for article date, I'm afraid there isn't any way to access that short of re-implementing the parse_feeds function.
kovidgoyal is offline   Reply With Quote