Thread: Print Version
View Single Post
Old 10-05-2009, 07:53 PM   #5
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
This is what you should use:

Code:
    def print_version(self, url):
        artl = url.rpartition('/')[0]
        artl2 = artl.rpartition('/')[0]
        rrest, sep, aid= artl3.rpartition('/')
        cid = rrest.rpartition('/')[2]
        return 'http://www.news24.com/printArticle.aspx?iframe&aid=' + aid + '&cid=' + cid
kiklop74 is offline   Reply With Quote