daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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