errno 111

use proxy in requests module and it's work in my computer. but in pythonanywhere doesn't work.. url = and it's in whitelist

this is my code:

import requests

url = "" proxies = { 'http':'' }

r = requests.get(url= url, proxies = proxies) data = r.status_code print(data)

That won't work in a free account. You're trying to connect to the proxy, and the proxy isn't on the whitelist. You'd need a paid account to connect outbound using proxies like that.