I would like to fetch certain .html files from a web server. My intention is to fetch .html files from a web site (http://www.thetabworld.com/) that has a word "metallica" on file name. How is that possible using python? I have heard about urllib2 but as a python noob, I don't have a slightest idea how to use it.
2 Answers
"I have heard about urllib2 but as a python noob, I don't have a slightest idea how to use it."
well if you don't know how to use urllib2, reading some docs would be a good start.
the following are excellent resources (with examples):
official python docs for urllib2
urllib2 - the missing manual
urllib2 cookbook
PMOTW - urllib2
2 Comments
Steve McLeod
RTFM is not a very helpful response
Corey Goldberg
steve, my answer gave 4 useful links to the best resources on urrlib2.. and was accepted by the OP. so, i would call it a "helpful response".