Quote:
Originally Posted by slex
|
I looked at this feed:
http://rss.investor.bg/c/33288/f/564906/index.rss
That feed does not give a url in the form of
http://www.investor.bg/news/article/112881/332.html like you are expecting.
It looks like this:
http://rss.investor.bg/c/33288/f/564...ml/story01.htm
In the future, you might want to post the full recipe. I had to guess about where your feed was, so if I guessed wrong, try this:
Code:
def print_version(self, url):
newurl = url.replace('http://www.investor.bg/news/article/', 'http://www.investor.bg/news/printer/')
print 'The original url is: ', url
print 'The new url is: ', newurl
return newurl
Then look at the output to make sure your links are being created correctly.