Top "Urllib2" questions

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

Get json data via url and use in python (simplejson)

I imagine this must have a simple answer, but I am struggling: I want to take a url (which outputs …

python json urllib2 simplejson
How do I add a header to urllib2 opener?

cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.open('http://abc.com') opener.open('http://google.com') …

python http header urllib2
How do I download a zip file in python using urllib2?

Two part question. I am trying to download multiple archived Cory Doctorow podcasts from the internet archive. The old one's …

python urllib2
Login to website using urllib2 - Python 2.7

Okay, so I am using this for a reddit bot, but I want to be able to figure out HOW …

python python-2.7 login urllib2
Stream large binary files with urllib2 to file

I use the following code to stream large files from the Internet into a local file: fp = open(file, 'wb') …

python file streaming urllib2
Python Requests: Post JSON and file in single request

I need to do a API call to upload a file along with a JSON string with details about the …

python json urllib2
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026'

I'm learning about urllib2 and Beautiful Soup and on first tests am getting errors like: UnicodeEncodeError: 'ascii' codec can't encode …

python python-2.7 unicode beautifulsoup urllib2
Make an http POST request to upload a file using Python urllib/urllib2

I would like to make a POST request to upload a file to a web service (and get response) using …

python http post urllib2 urllib
How can I use a SOCKS 4/5 proxy with urllib2?

How can I use a SOCKS 4/5 proxy with urllib2 to download a web page?

python proxy urllib2 socks
Read file object as string in python

I'm using urllib2 to read in a page. I need to do a quick regex on the source and pull …

python file urllib2