Top "Urllib2" questions

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

How to debug urllib2 request that uses a basic authentication handler

I'm making a request using urllib2 and the HTTPBasicAuthHandler like so: import urllib2 theurl = 'http://someurl.com' username = 'username' password = …

python debugging urllib2 basic-authentication
Web scraping - how to access content rendered in JavaScript via Angular.js?

I'm trying to scrape data from the public site asx.com.au The page http://www.asx.com.au/asx/…

python angularjs web-scraping beautifulsoup urllib2
Python urllib over TOR?

Sample code: #!/usr/bin/python import socks import socket import urllib2 socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, "127.0.0.1", 9050, True) socket.socket = …

python urllib2 socks tor
how enable requests async mode?

for this code: import sys import gevent from gevent import monkey monkey.patch_all() import requests import urllib2 def worker(…

python asynchronous urllib2 gevent python-requests
TypeError: write() argument 1 must be unicode, not str

I'm trying import a text file and save it on my desktop, but the text is in "utf-8" (there is …

python python-2.7 urllib2 python-unicode
urllib2.urlopen() vs urllib.urlopen() - urllib2 throws 404 while urllib works! WHY?

import urllib print urllib.urlopen('http://www.reefgeek.com/equipment/Controllers_&_Monitors/Neptune_Systems_AquaController/Apex_Controller_&_Accessories/…

python url http-status-code-404 urllib2 urllib
urllib.quote() throws KeyError

To encode the URI, I used urllib.quote("schönefeld") but when some non-ascii characters exists in string, it thorws …

python unicode urllib2 urlencode urllib
Source interface with Python and urllib2

How do i set the source IP/interface with Python and urllib2?

python urllib2
Using urllib2 with SOCKS proxy

Is it possible to fetch pages with urllib2 through a SOCKS proxy on a one socks server per opener basic? …

python urllib2 socks
Unescape Python Strings From HTTP

I've got a string from an HTTP header, but it's been escaped.. what function can I use to unescape it? …

python http header urllib2 mod-wsgi