Top "Urllib2" questions

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

regarding using urllib3 to replace urllib2

I was trying to use the following code segment. I am using Python 3, which has urllib3 instead of urllib2. I …

python urllib2 urllib urllib3
urllib2.URLError: <urlopen error unknown url type: c>

I am using the below code to scrape over XFN content from web page http://ajaxian.com but I am …

python python-2.7 beautifulsoup urllib2 microformats
Python urllib2 and [errno 10054] An existing connection was forcibly closed by the remote host and a few urllib2 problems

I've written a crawler that uses urllib2 to fetch URLs. every few requests I get some weird behaviors, I've tried …

python exception web-crawler urllib2 errno
How do I unit test a module that relies on urllib2?

I've got a piece of code that I can't figure out how to unit test! The module pulls content from …

python unit-testing urllib2 urllib
Python urllib2 resume download doesn't work when network reconnects

I'm using urllib2 to make a resuming downloader, roughly based on this method. I can end the program and re-start …

python urllib2 resume-download
Python - Easy way to scrape Google, download top N hits (entire .html documents) for given search?

Is there an easy way to scrape Google and write the text (just the text) of the top N (say, 1000) .…

python web-scraping urllib2 google-search
Use python to access a site with PKI security

I have a site that has PKI security enabled. Each client used either a card reader to load their certificate, …

python python-2.7 ssl urllib2 pki
Python: Request URL via POST and show result in browser

I'm a developer for a big GUI app and we have a web site for bug tracking. Anybody can submit …

python http urllib2 python-webbrowser
Python urllib2.urlopen returns a HTTP error 503

Here you can see my code snippet. Since 3 days it does not work any longer. My python is running under …

python urllib2 urlopen
Handling IncompleteRead,URLError

it's a piece of web mining script. def printer(q,missing): while 1: tmpurl=q.get() try: image=urllib2.urlopen(tmpurl).…

python error-handling urllib2 httplib