Hiya,
I've tried searching and can't seem to find an answer for my issue :(
I have a paid account (Hacker) and was hoping to create iPython Notebooks to do some stuff but can't get them to grab content from other sites, such as the following which uses 'requests'...
import requests
url = 'https://www.pythonanywhere.com'
response = requests.get(url)
html = response.content
print html
...or this one with 'urllib'...
import urllib
url = 'https://www.pythonanywhere.com'
html = urllib.urlopen(url)
print(html.read())
The problem is, that I get a connection error regardless of what URL I throw in there (in both cases):
ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))
Is this a limitation of the account with regard to Notebooks or am I missing something here? The same code works fine from a console.
Thanks in advance for any tips!
Hb.