Whenever I open a page with urllib or urllib2 (file = urllib.urlopen(urllinkhere)) and when I print it, I get this:
[IMG]http://i121.photobucket.com/albums/o229/Shadow14l/boxes1.gif[/IMG]
See all the square boxes? Unknown characters or something...
Well they are and represent the returns (new lines). If I saved this to a text file, all the boxes would still be there. Then if I were to delete them, it would appear that they are gone and it's fixed, but once I save the file again, all the new lines, returns etc. are gone. Everything is clumped together on one line.
All I need is one solution :)
Solution #1: This is the easy way, and all I need to do is var = line.replace("boxcharacter", "\n")
All I need is what character is that lil box :P
Solution #2: Any other solution that works!!!!! :P
Thanks for any help!!!!! Ask me if you need more details. The source is simply:
f = urllib2.urlopen(anyurlhere)
print f.read()
Thanks for any/all help!
~Shadow14l