From ed4e281f3fcab07541ef7c58537d800f8fe6fab9 Mon Sep 17 00:00:00 2001 From: lmn3x <84769510+lmn3x@users.noreply.github.com> Date: Tue, 1 Jun 2021 00:07:08 +0430 Subject: [PATCH] update proxy part add socks5h for supporting https --- torrequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrequest.py b/torrequest.py index eab1a2d..3494695 100644 --- a/torrequest.py +++ b/torrequest.py @@ -26,7 +26,7 @@ def __init__(self, self.session = requests.Session() self.session.proxies.update({ 'http': 'socks5://localhost:%d' % self.proxy_port, - 'https': 'socks5://localhost:%d' % self.proxy_port, + 'https': 'socks5h://localhost:%d' % self.proxy_port, }) def _tor_process_exists(self):