Answers for "to read a file in python from url"

0

python read url

import urllib

link = "http://www.somesite.com/details.pl?urn=2344"
f = urllib.urlopen(link)
myfile = f.read()
print(myfile)
Posted by: Guest on August-19-2021

Code answers related to "to read a file in python from url"

Python Answers by Framework

Browse Popular Code Answers by Language