我正在尝试使用stem python库从远程机器连接到tor的控制端口(9051)。
矮胖
from stem import Signal
from stem.control import Controller
def set_new_ip():
"""Change IP using TOR"""
with Controller.from_port(address = '10.130.8.169', port=9051) as controller:
controller.authenticate(password='password')
controller.signal(Signal.NEWNYM)
set_new_ip()
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
Traceback (most recent call last):
File "/home/jkl/anaconda3/lib/python3.5/site-packages/stem/socket.py", line 398, in _make_socket
control_socket.connect((self._control_addr, self._control_port))
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dum.py", line 28, in <module>
set_new_ip();
File "dum.py", line 7, in set_new_ip
with Controller.from_port(address = '10.130.4.162', port=9051) as controller: …Run Code Online (Sandbox Code Playgroud) 我将开始一项关于情绪分析和自然语言处理的研究,并将使用电影评论来进行研究。我在网上搜索了数据集,发现有很多但没有一个完全符合我的需要,其中大多数都只有一堆电影详细信息和标签。我只需要评论家或用户的文字评论以及电影标题或ID,就像您在IMDb或Rotten Tomatoes上找到的那样。网络上是否有类似的东西,或者任何语言的API或库,对我有帮助吗?干杯!