|02-12-2013, 04:38 PM||#1|
Join Date: Feb 2013
Device: Android FB Reader
Esquire.com Blogs Print Article links
I'm trying to set up a recipe for Esquire.com blogs, since just the basic doesn't seem to work properly. But I'm running into a problem with swapping out URLs for the print version:
Regular version (via RSS):
I know how to sub in '?page=all', but I'm not sure how to swap out 'blogs/culture' for '/print-this'. Also, if I'm looking at the politics blog, it would be 'blogs/politics' (and other changes for different sections)
So two questions:
1. How do I swap out stuff in the middle of the URL?
2. Do I need to write a rule for each feed? Or is there some other way around that?
|02-12-2013, 11:24 PM||#2|
Creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
re.sub(r'esquire.com/[a-z]+/[a-z]+', 'esquire.com/print-this', url)
Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it.
|esquire, newbie, print on demand|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|The Economist: "See article" links point to web||ugumba||Recipes||4||06-26-2012 12:35 AM|
|How get full article when good looking page do not have print version and same url?||newnick||Recipes||2||07-08-2011 03:58 AM|
|Downloading and Converting Print version of RSS article||Daanish87||Calibre||1||06-11-2010 02:08 AM|
|Any way to download & print Kindle article?||jdouglasj||Introduce Yourself||5||12-11-2009 10:09 AM|
|Sell Shipping the new Esquire cover||Nate the great||Flea Market||0||09-10-2008 02:11 PM|