# urllib3
from urllib.request import urlopen, Request
req = Request('https://icanhazip.com')
req.set_proxy('127.0.0.1:9051', 'https')
resp = urlopen(req)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# urllib3
from urllib.request import urlopen, Request
req = Request('https://icanhazip.com')
req.set_proxy('127.0.0.1:9051', 'https')
resp = urlopen(req)