【发布时间】:2018-09-05 06:28:23
【问题描述】:
我目前在通过 Python3 中的 requests 库发出 get 请求时使用代理。我为我的代理设置了 Tor 和 Privoxy,代码如下所示:
import requests
proxies = {
"http": "http://127.0.0.1:8118",
"https": "https://127.0.0.1:8118"
}
resp = requests.get("https://icanhazip.com", proxies=proxies)
我想知道如果使用了 http 或 https 代理,是否有办法查看 resp。有没有办法做到这一点?
【问题讨论】:
标签: proxy python-requests tor