fork download
  1. # -*- coding: utf-8 -*-
  2. import requests
  3. http_proxy = 'http://127.0.0.1:80'
  4. proxyDict = {"http" : http_proxy}
  5. r = requests.get('http:// ip.42.pl /raw', proxies=proxyDict, verify=False)
  6. print(r.status_code, r.reason)
  7. print(r.text + '...')
Runtime error #stdin #stdout #stderr 0.02s 44680KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "prog.py", line 2, in <module>
    import requests
ImportError: No module named requests