Top "Urllib2" questions

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

Python: URLError: <urlopen error [Errno 10060]

OS: Windows 7; Python 2.7.3 using the Python GUI Shell I'm trying to read a website through Python, and several authors use …

python python-2.7 urllib2 urllib
urllib2 and json

can anyone point out a tutorial that shows me how to do a POST request using urllib2 with the data …

python json urllib2
Submitting to a web form using python

I have seen questions like this asked many many times but none are helpful Im trying to submit data to …

python post request urllib2 urllib
urllib2 HTTP Error 400: Bad Request

I have a piece of code like this host = 'http://www.bing.com/search?q=%s&go=&qs=…

python urllib2 http-error
How to correctly parse UTF-8 encoded HTML to Unicode strings with BeautifulSoup?

I'm running a Python program which fetches a UTF-8-encoded web page, and I extract some text from the HTML …

python unicode utf-8 beautifulsoup urllib2
ImportError: No module named 'urllib2' Python 3

The below code is working fine on Python 2 but on Python 3 I get the error: "ImportError: No module named 'urllib2…

python urllib2 python-3.5
How do I send a custom header with urllib2 in a HTTP Request?

I want to send a custom "Accept" header in my request when using urllib2.urlopen(..). How do I do that?

python header urllib2
Python: download files from google drive using url

I am trying to download files from google drive and all I have is the drive's URL. I have read …

python download google-drive-api urllib2 pydrive
How to convert a dictionary to query string in Python?

After using cgi.parse_qs(), how to convert the result (dictionary) back to query string? Looking for something similar to …

python urllib2 urllib
Python's `urllib2`: Why do I get error 403 when I `urlopen` a Wikipedia page?

I have a strange bug when trying to urlopen a certain page from Wikipedia. This is the page: http://en.…

python http urllib2