[英]Request Max Retries TOR
I am trying to connect to TOR's localhost loopback and send data through it. 我正在尝试连接到TOR的本地主机回送并通过它发送数据。 The address I am using is:
我使用的地址是:
127.0.0.1:9050
I am using the following script to do this: 我正在使用以下脚本来执行此操作:
import requesocks, requests
session = requesocks.session()
session.proxies = {'http': 'socks5://127.0.0.1:9050',
'https': 'socks5://127.0.0.1:9050'}
print session.get("https://api.ipify.org?format=json").json()
It is supposed to retrieve my IP and print it. 应该可以检索我的IP并进行打印。 However, it gives the following error:
但是,它给出以下错误:
Max retries exceeded with url: https://api.ipify.org/?format=json
I can verify that TOR is up and running. 我可以验证TOR是否已启动并正在运行。 What could be the problem raising this exception?
引发此异常可能是什么问题?
I got it working. 我知道了 I had to install the "expert" installer and add the exe to my PATH.
我必须安装“专家”安装程序,然后将exe添加到我的PATH中。 Thank you
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.