Guest User

Untitled

a guest
Oct 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import requests
  2. import json
  3.  
  4. proxies = {
  5. 'http': 'socks5h://127.0.0.1:9050',
  6. 'https': 'socks5h://127.0.0.1:9050'
  7. }
  8.  
  9. data = requests.get("http://sblib3fk2gryb46d.onion",proxies=proxies).text
  10.  
  11. print(data)
  12.  
  13. #!/usr/bin/env python
  14. import requests
  15.  
  16. with requests.Session() as s:
  17. s.proxies['http'] = 'socks5h://localhost:9050'
  18. s.proxies['https'] = 'socks5h://localhost:9050'
  19. print(s.get('https://www.facebookcorewwwi.onion/').headers)
Add Comment
Please, Sign In to add comment