Top "Urllib2" questions

urllib2 is a builtin python 2 module that defines functions and classes to help with URL actions.

Import error: No module name urllib2

Here's my code: import urllib2.request response = urllib2.urlopen("http://www.google.com") html = response.read() print(html) Any help?

python python-3.x urllib2
How to download image using requests

I'm trying to download and save an image from the web using python's requests module. Here is the (working) code …

python urllib2 python-requests
Need to install urllib2 for Python 3.5.1

I'm running Python 3.5.1 for Mac. I want to use urllib2 module. I tried installing it but I was told that …

python python-3.x urllib2
Downloading a picture via urllib and python

So I'm trying to make a Python script that downloads webcomics and puts them in a folder on my desktop. …

python urllib2 urllib
What are the differences between the urllib, urllib2, urllib3 and requests module?

In Python, what are the differences between the urllib, urllib2, urllib3 and requests modules? Why are there three? They seem …

python python-requests urllib2 urllib python-2.x
AttributeError("'str' object has no attribute 'read'")

In Python I'm getting an error: Exception: (<type 'exceptions.AttributeError'>, AttributeError("'str' object has no attribute 'read'",), <…

python python-2.7 urllib2 attributeerror
Python handling socket.error: [Errno 104] Connection reset by peer

When using Python 2.7 with urllib2 to retrieve data from an API, I get the error [Errno 104] Connection reset by peer. …

python ubuntu python-2.7 urllib2
Using an HTTP PROXY - Python

I familiar with the fact that I should set the HTTP_RPOXY environment variable to the proxy address. Generally urllib …

python http proxy urllib2
Making a POST call instead of GET using urllib2

There's a lot of stuff out there on urllib2 and POST calls, but I'm stuck on a problem. I'm trying …

python urllib2 urllib
Python urllib2: Receive JSON response from url

I am trying to GET a URL using Python and the response is JSON. However, when I run import urllib2 …

python json urllib2