March 2003
Intermediate to advanced
656 pages
39h 30m
English
urlopen
urlopen(url,data=None)
Almost identical to the urlopen function in module
urllib. However, you customize behavior via the
opener and handler classes of urllib2, covered
later in this chapter, rather than via class
FancyURLopener as in module
urllib. Argument url
can be a URL string, like for the urlopen function
in module urllib. Alternatively,
url can be an instance of class
Request, covered in the next section.
Read now
Unlock full access