python read url

Solutions on MaxInterview for python read url by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "python read url"
Muriel
01 Apr 2018
1import urllib
2
3link = "http://www.somesite.com/details.pl?urn=2344"
4f = urllib.urlopen(link)
5myfile = f.read()
6print(myfile)
7