Connecting
to the website, accessing the data from the website and performing the required
operations on the data is known as web scrapping
Example –
import urllib2 count=0 x=urllib2.urlopen("https://www.python.org/")
for line in x: if 'Python' in line: count = count+1
print count
Output –
76
No comments:
Post a Comment