Kexiii / pydouyu

斗鱼TV弹幕协议、API python实现
MIT License
20 stars 5 forks source link

WARNING:root:Socket connect failed with openbarrage.douyutv.com:8601. Exception: [Errno 8] nodename nor servname provided, or not known #2

Closed john012343210 closed 3 years ago

john012343210 commented 3 years ago

WARNING:root:Socket connect failed with openbarrage.douyutv.com:8601. Exception: [Errno 8] nodename nor servname provided, or not known

aierror                                  Traceback (most recent call last)
/opt/anaconda3/lib/python3.8/site-packages/pydouyu/tcp_socket.py in connect(self)
     31                 try:
---> 32                     self.socket.connect((self.host, self.port))
     33                 except Exception as e:

gaierror: [Errno 8] nodename nor servname provided, or not known

openbarrage.douyutv.com:8601

Kexiii commented 3 years ago

I believe this API is deprecated and no longer maintained by DouYu official team anymore, you can assign the IP address (barrage_host="119.96.201.28") directly to make it work for now as the domain name is no longer available.

这个老的接口官方已经准备下线了,现在应该域名都下了,但是背后的机器还在,可以ip直连,指定barrage_host="119.96.201.28", 不知道能坚持多久。