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