Windows
python -m pip install hideip
macOS
sudo pip install hideip
Linux
pip install hideip
- Open file SOCKS5 proxy
- Get the avaiable proxy in the file
- Torrent the proxy
First of all, we need the file SOCKS5 download it from HideMe
from hideip import HideMe
# The path file socks5.csv
file = 'socks5.csv'
hide = HideMe(file)
# Get the avaiable proxy
proxy = hide.torrent()
# Print
print(proxy)
The socks5 maybe not support verify
, therefore we need to set it False
. We might want to turn off the InsecureRequest warning.
import requests
from hideip import HideMe
# Turn off warning, please ignore if you don't want
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
# Get the proxy
file = 'socks5.csv'
hide = HideMe(file)
hideme = hide.torrent()
# Requests
res = requests.get('https://httpbin.org/ip',proxies = hideme, verify = False, timeout = 2)
print(res.text)