How can i read a txt file from a website in python

Im learning NLTk and i need to load in a large file and i dont want to save it on my desktop
How can i read in a file with python thats hosted on a website?
I tried this code here but it didnt work, i assume that the open with is the rson …