|12-20-2008, 12:04 PM||#1|
Join Date: Dec 2008
Device: Sony Reader
Proper code for fetching Print Version from WSJ and NYT?
The calibre User's Manual offers an example on modifying the url to fetch the Print Version of some bbc articles. I would like to accomplish the same thing with WSJ and NYT Business articles.
In the case of the bbc website, the Print Version differs from the normal url with a particular prefix, as shown in the User's Manual example.
However, with the wsj and nyt sites, the Print Version requires a suffix to the normal url, here illustrated with an example from the wsj:
Print Version: http://online.wsj.com/article/SB122973431525523215.html#printMode
Can anyone help with the correct python code to direct it to append "#printmode" (in the case of wsj) to the end of each article's url?
|12-20-2008, 01:06 PM||#2|
Join Date: Dec 2007
Device: Kindle PaperWhite
def print_version(self, url): return url + '#printMode'
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Error in fetching news version 6.52||mlqpan||Introduce Yourself||5||05-21-2010 01:44 PM|
|Print Version||Neels||Calibre||5||10-12-2009 03:09 PM|
|Pirates targeting print books, writes NYT||Alexander Turcic||News||0||05-12-2009 05:07 AM|
|Can I read the WSJ or NYT Online?||markbot||Sony Reader||17||07-30-2007 03:32 PM|
|WSJ Electronic Version More Profitable||Bob Russell||News||2||04-15-2005 08:57 PM|