Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import json
- proxies = {
- 'http': 'socks5h://127.0.0.1:9050',
- 'https': 'socks5h://127.0.0.1:9050'
- }
- data = requests.get("http://sblib3fk2gryb46d.onion",proxies=proxies).text
- print(data)
- #!/usr/bin/env python
- import requests
- with requests.Session() as s:
- s.proxies['http'] = 'socks5h://localhost:9050'
- s.proxies['https'] = 'socks5h://localhost:9050'
- print(s.get('https://www.facebookcorewwwi.onion/').headers)
Add Comment
Please, Sign In to add comment