Top "Urllib2" questions

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

Can't install urllib2 for python 2.7

I try to install module urllib2 for python 2.7 (I as usual use command pip install), but have an error No …

python-2.7 urllib2
How to make a Python HTTP Request with POST data and Cookie?

I am trying to do a HTTP POST using cookies in Python. I have the values of URL, POST data …

python cookies http-post urllib2
Python3 error: initial_value must be str or None, with StringIO

While porting code from python2 to 3, I get this error when reading from a URL TypeError: initial_value must be …

python python-3.x urllib urllib2 stringio
Parse XML from URL into python object

The goodreads website has this API for accessing a user's 'shelves:' https://www.goodreads.com/review/list/20990068.xml?key=…

python xml django xml-parsing urllib2
Using MultipartPostHandler to POST form-data with Python

Problem: When POSTing data with Python's urllib2, all data is URL encoded and sent as Content-Type: application/x-www-form-urlencoded. When uploading …

python file upload urllib2 multipartform-data
urllib2 read to Unicode

I need to store the content of a site that can be in any language. And I need to be …

python unicode urllib2
How to send a POST request using django?

I dont want to use html file, but only with django I have to make POST request. Just like urllib2 …

python django urllib2
Python 3 urllib produces TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str

I am trying to convert working Python 2.7 code into Python 3 code and I am receiving a type error from the …

python python-2.7 python-3.x urllib2 urllib
Python urllib2 URLError HTTP status code.

I want to grab the HTTP status code once it raises a URLError exception: I tried this but didn't help: …

python exception urllib2
How to fix ImportError: No module named packages.urllib3?

I'm running Python 2.7.6 on an Ubuntu machine. When I run twill-sh (Twill is a browser used for testing websites) in …

python urllib2 urllib3 twill