How do I get raw text with beautifulsoup?

rudygazelle

New Member
I have a xml like this:\[code\]<link>www.link1.com</link><link>www.link2.com</link>\[/code\]I have tried this code:\[code\]from BeautifulSoup import BeautifulStoneSoup soup = BeautifulStoneSoup(results2) #Beautiful Souplinklist = soup.findAll('link')print soup\[/code\]Using this code, the output is\[code\][<link>www.link1.com</link>,<link>www.link2.com</link>]\[/code\]But I want an output like this\[code\][www.link1.com, www.link2.com]\[/code\]
 
Back
Top