Hi,
I'm rather new to this, but is there an easy way to use the pubdate information for the print_version of a custom news source?
For example, the article link is at:
Code:
http://www.somewebsite.com/.../article_idnumber
But print version is at:
Code:
http://www.somewebsite.com/.../print/20090529/idnumber
The 20090529 is the pubdate identified in the article link above. Whereas the pubdate is listed in the xml source as
Code:
<pubDate>Fri, 29 May 2009 23:31 -0400</pubDate>
Calibre seems to be able to parse the pubdate fine using the BasicNewsRecipe. So is there some sort of global variable I can use to include the pubdate in my print_version url?
For example:
Code:
def print_version(self, url):
return 'http://www.somewebsite.com/../print/' + pubdate + '/' + url.rsplit('/article_')[1]
From what I've read in the documentation, I will need to parse the feeds again using the parse_feeds() function in order to extract the pubdate data. Is this correct? Does anyone have any examples on how do do this? I can't seem to find any recipes that use the parse_feeds() function.
Any help would be appreciated. Thanks!