Quote:
Originally Posted by Daanish87
I actually wanted to try the print edition way, but here is where I got stuck. The URLs are nearly identical. I tried messing around with it but it keeps giving me the same output. Would you be able to guide me as to what I should put for the replacement when writing the code?
|
You want to replace DetailNews with ImprimerDetail.
Try this (No guarantees - I don't have anywhere to test it right now):
Code:
def print_version(self, url):
return url.replace('http://www.investmentexecutive.com/client/en/News/DetailNews', 'http://www.investmentexecutive.com/client/en/News/ImprimerDetail')