View Single Post
Old 11-30-2011, 03:46 PM   #1
sleepless
Junior Member
sleepless began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: none
Print friendly url unrelated to regular url (and javascript)

The url of the print friendly version is not contained anywhere in the url of the article. Instead the print-friendly url looks like: http://url.com/article_print.html?id=94148

Now there is an id tag in the original article but how do I extract that id tag and then direct calibre to the new url that contains this id?

I tried using br.follow_link and url_regex but the link to the print friendly page is actually javascript and it apparently it does not work with javascript.

(I am also very new to python)

Any help would be appreciated. This is my first post and I tried to find the answer in the forums but could not. If it has been posted many times already I apologize.

If you are interested here is the link to my feed:

http://feeds.christianitytoday.com/c...itytoday/ctmag

and here is an article:

http://www.christianitytoday.com/ct/...isability.html

and here is that article's print friendly page:

http://www.christianitytoday.com/ct/....html?id=94467

Last edited by sleepless; 11-30-2011 at 03:54 PM.
sleepless is offline   Reply With Quote