8

I need to use urllib2 with BeautifulSoup. I found the download file for BeautifulSoup and installed it, however, I couldn't find any download files for urllib2, is there another way to intall that module?

Josh
  • 3,231
  • 8
  • 37
  • 58

1 Answers1

11

The module comes with Python, simply import it:

import urllib2

If you're using Python3, the urllib was replaced by urllib.request. The Urllib PEP (Python3): http://www.python.org/dev/peps/pep-3108/#urllib-package.

dav1d
  • 5,917
  • 1
  • 33
  • 52