Top "Urllib2" questions

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

Python urllib2 with keep alive

How can I make a "keep alive" HTTP request using Python's urllib2?

python http urllib2 keep-alive
Error - urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

My aim is to extract the html from all the links in the first page after entering the google search …

python proxy mechanize urllib2
Spoofing the origination IP address of an HTTP request

This only needs to work on a single subnet and is not for malicious use. I have a load testing …

python http networking sockets urllib2
How do I open an image from the internet in PIL?

I would like to find the dimensions of an image on the internet. I tried using from PIL import Image …

python python-imaging-library urllib2
Does python urllib2 automatically uncompress gzip data fetched from webpage?

I'm using data=urllib2.urlopen(url).read() I want to know: How can I tell if the data at a …

python gzip urllib2
Which is best in Python: urllib2, PycURL or mechanize?

Ok so I need to download some web pages using Python and did a quick investigation of my options. Included …

python urllib2 mechanize pycurl
How can I get the final redirect URL when using urllib2.urlopen?

I'm using the urllib2.urlopen method to open a URL and fetch the markup of a webpage. Some of these …

python urllib2
setting the timeout on a urllib2.request() call

I need to set the timeout on urllib2.request(). I do not use urllib2.urlopen() since i am using the …

python urllib2
python urllib2 urlopen response

python urllib2 urlopen response: <addinfourl at 1081306700 whose fp = <socket._fileobject object at 0x4073192c>> expected: {"token":"…

python urllib2 urlopen
Get page generated with Javascript in Python

I'd like to download web page generated by Javascript and store it to string variable in Python code. The page …

javascript python html download urllib2