0

I am trying to learn to build API's in Python. I want to start with something simple, just fetching simple internet resources. After reading different sources, it appears i'll need to import urlllib2 module but there is no such module in the installation. Is there somewhere to dl or at least get a list of modules in a Python installation?

MikeinFl
  • 87
  • 1
  • 10
  • possible duplicate of [Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)](http://stackoverflow.com/questions/6594620/python-3-2-unable-to-import-urllib2-importerror-no-module-named-urllib2) – shad0w_wa1k3r Dec 23 '13 at 18:21

1 Answers1

1

The urllib2 module has been integrated into the urllib module in Python3.

Here is the pep link that describes the change - http://www.python.org/dev/peps/pep-3108/#urllib-package

Simply use urllib instead. It's been greatly improved.

shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90