View Single Post
Old 09-03-2010, 01:50 PM   #2612
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
If I have asked this before please forgive me but I can't remember how.

If I have a rss feed that shows some linkes and the likes are like :
http://www.nfl.com/goto?id=09000d5d81a38fd4
but that link gets automatically changed to something like this when the article loads.
http://www.nfl.com/preseason/story/0...ffers-torn-mcl

How the heck could I get the url that is produced when the article loads? Cause to get the print version all I need to do is
Code:
 def print_version(self, url):
        print_url = url.replace('/article/', '/printable')
        print 'THE PRINTABLE URL IS: ', print_url
        return print_url
which would give me
http://www.nfl.com/preseason/story/0...ffers-torn-mcl

but instead i get:
http://www.nfl.com/goto?id=09000d5d81a38fd4

thanks. And starson17 I'm doing like you said and making me one big template with comments and all of how to do certain things so I can cut and paste the "tricks" thanks for the advice
TonytheBookworm is offline