Windows 7, Python 3.4, PyCharm Community Edition 3.1.1
I'm new to Python. I want to get the html of a website. I use the following code:
from urllib.request import urlopen
response = urlopen('http://python.org/')
html = response.read()
But I get the following error:
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
I believe, the problem might come from this:
>>> import urllib
>>> urllib.request.getproxies()
{}
Any ideas, if that is the problem and how can I fix it?