View Single Post
Old 06-11-2010, 03:40 PM   #2077
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Daanish87 View Post
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')
Starson17 is offline