Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 277 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import requests
  2.  
  3. proxies = {
  4.     'http': 'http://user:pass@10.10.1.0:3128',
  5.     'https': 'http://user:pass@10.10.1.0:3128',
  6. }
  7.  
  8. # Create the session and set the proxies.
  9. s = requests.Session()
  10. s.proxies = proxies
  11.  
  12. # Make the HTTP request through the session.
  13. r = s.get('http://www.showmemyip.com/')
  14.  
  15. # Check if the proxy was indeed used (the text should contain the proxy IP).
  16. print(r.text)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top