For example this is what I am trying to do that is not working.

The contents of link is the reuters web page, containing

"/news/newsArticle.aspx?type=businessNews&storyID=2005-10-05T151245Z_01_HO548006_RTRUKOC_0_UK-AIRLINES-BA.xml"

link = link.replace('&','&')

But if I now view the the contents link it shows it the same as when it 
was assigned.




Richard Brodie wrote:
> "Mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> 
> 
>>However when I pull it into python the URL ends up looking like this
>>(notice the &amp; instead of just & in the URL)
>>
>>Any ideas?
> 
> 
> Some code would be helpful: the "&amp;" is in the page source to start
> with (which is as it ought to be). What are you using to parse the HTML?
> 
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to