Here's what we need:
- IDLE (Python GUI) (I am using 2.7.5)
The code is simple as:
#imports import urllib2 # variable declaration url = "http://techno-ob.blogspot.com" # get page source data = urllib2.urlopen(url).read() # print source print data
#imports import urllib2 # variable declaration url = "http://techno-ob.blogspot.com" # get page source data = urllib2.urlopen(url).read() # print source print data
No comments:
Post a Comment