Top "Urllib2" questions

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

Python: urllib/urllib2/httplib confusion

I'm trying to test the functionality of a web app by scripting a login sequence in Python, but I'm having …

python http urllib2
How to fetch a non-ascii url with Python urlopen?

I need to fetch data from a URL with non-ascii characters but urllib2.urlopen refuses to open the resource and …

python unicode urllib2 non-ascii-characters urlopen
Python Urllib2 SSL error

Python 2.7.9 is now much more strict about SSL certificate verification. Awesome! I'm not surprised that programs that were working before …

python ssl urllib2
Python - urllib2 & cookielib

I am trying to open the following website and retrieve the initial cookie and use it for the second url-open …

python urllib2 cookielib
How to retry urllib2.request when fails?

When urllib2.request reaches timeout, a urllib2.URLError exception is raised. What is the pythonic way to retry establishing a …

python decorator urllib2 urllib3
Opening Local File Works with urllib but not with urllib2

I'm trying to open a local file using urllib2. How can I go about doing this? When I try the …

python urllib2 urllib
Python: HTTP Post a large file with streaming

I'm uploading potentially large files to a web server. Currently I'm doing this: import urllib2 f = open('somelargefile.zip','rb') …

python http urllib2
How to use urllib2.urlopen to make POST request without data argument

I am trying to use urllib2.urlopen to perform GET and POST requests via the Facebook Graph API. I noticed …

python facebook-graph-api urllib2 urlopen
Download a file from https with authentication

I have a Python 2.6 script that downloades a file from a web server. I want this this script to pass …

python urllib2 python-2.6
Fetch a Wikipedia article with Python

I try to fetch a Wikipedia article with Python's urllib: f = urllib.urlopen("http://en.wikipedia.org/w/index.php?…

python urllib2 user-agent wikipedia http-status-code-403