Hi there,
This will surely be an easy one but it is really bugging me.
I have a script that reads in a webpage and uses BeutifulSoup to parse it. From the soup I extract all the links as my final goal is to print out the link.contents.
All off the text that I am parsing is ASCII. I know that python treats strings as unicode, and I am sure this is very handy, just of no use in my wee script.
Every time I go to print out a variable that holds 'String' I get u['String'] printed to the screen. Is there a simple way of getting this back into just ascii or should I write a regex to strip it?
Thanks, John.