【发布时间】:2017-07-13 23:22:14
【问题描述】:
为什么Signal.NEWNYM 没有生成新的 IP 地址?
from stem import Signal
from stem.control import Controller
import requests
with Controller.from_port(port=9051) as controller:
print('Ready')
controller.authenticate(password='872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C')
print("Success!")
controller.signal(Signal.NEWNYM)
print("New Tor connection processed")
print(requests.get('http://icanhazip.com').content)
【问题讨论】:
-
它显示的是相同的原始 IP 地址。