The problem, in my case, was that some install at some point defined an environment variable http_proxy on my machine when I had no proxy.
Removing the http_proxy environment variable fixed the problem.
More Related Contents:
- How to download image using requests
- Downloading a picture via urllib and python
- Proxy with urllib2
- Using an HTTP PROXY – Python [duplicate]
- How to fetch a non-ascii url with urlopen?
- Python Urllib2 SSL error
- Using MultipartPostHandler to POST form-data with Python
- Python urllib2 Basic Auth Problem
- Python-Requests close http connection
- Python urllib2 with keep alive
- How to correctly parse UTF-8 encoded HTML to Unicode strings with BeautifulSoup? [duplicate]
- Python urllib2 Progress Hook
- Extracting text from script tag using BeautifulSoup in Python
- Making a POST call instead of GET using urllib2
- How can I speed up fetching pages with urllib2 in python?
- How to download any(!) webpage with correct charset in python?
- opening websites using urllib2 from behind corporate firewall – 11004 getaddrinfo failed
- Source interface with Python and urllib2
- Python urllib2: Receive JSON response from url
- Python 3 urllib produces TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str
- Python POST binary data
- How to get the URL of a redirect with Python
- Download and decompress gzipped file in memory?
- urllib2 file name
- How to save “complete webpage” not just basic html using Python
- Using urllib2 with SOCKS proxy
- Why do I get “‘str’ object has no attribute ‘read'” when trying to use `json.load` on a string? [duplicate]
- how to follow meta refreshes in Python
- Multiprocessing useless with urllib2?
- Python3 error: initial_value must be str or None, with StringIO