View Single Post
Old 12-20-2008, 12:04 PM   #1
brad382
Junior Member
brad382 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2008
Device: iPad Pro 12.9" (3rd Generation)
Proper code for fetching Print Version from WSJ and NYT?

Hello,

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:

Normal:
http://online.wsj.com/article/SB122973431525523215.html

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?

Thank you.
brad382 is offline   Reply With Quote