So I have this crazy long text file made by my crawler and it for some reason added some spaces inbetween the links, like this:
https://example.com/asdf.html
You can open file and read line by line and remove white space -
Python 3.x:
with open('filename') as f: for line in f: print(line.strip())
Python 2.x:
with open('filename') as f: for line in f: print line.strip()
It will remove space from each line and print it.
Hope it helps!