简体   繁体   English

请求最大重试TOR

[英]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.

相关问题 Python请求-ConnectionError-超过最大重试次数 - Python Request - ConnectionError - Max retries exceeded 我可以为 requests.request 设置 max_retries 吗? - Can I set max_retries for requests.request? url Tensorflow Serving Python Request 超过了最大重试次数 - Max retries exceeded with url Tensorflow Serving Python Request 超过最大重试次数-Elasticsearch - Max retries exceeded - Elasticsearch 超过最大重试次数 - Max retries exceeded 最大重试次数超过 url - Max retries exceeded with url 使用请求模块在Python中的Http Post请求中超出了最大重试次数并且证书验证失败 - Max retries exceeded and Certificate Verify Failed in Http Post Request in Python using requests Module Snowflake AWS Privatelink - Python 连接器错误最大重试次数超过 url:/session/v1/login-request? - Snowflake AWS Privatelink - Python Connector Error Max retries exceeded with url: /session/v1/login-request? “最大重试次数超过 URL”,两个 Docker 容器相互发送 POST 请求,在本地主机上运行 - 'Max retries exceeded with URL' with two Docker containers sending POST request to each other, running on localhost Python - 第一次请求时如何获得 SSL 错误(url 超出最大重试次数)? - Python - How is it possible to get SSL Error (Max retries exceeded with url) at first request?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM