Giter Club home page Giter Club logo

Comments (2)

rickyi22 avatar rickyi22 commented on July 19, 2024

不好意思,大佬,用下中文,我用以前的斗鱼抓取脚本, 改一下房间名就没效果了, 但改为以前的房间名还是可以,不知道哪里出错了
新房间名:https://www.douyu.com/65000
旧房间名:http://www.douyu.com/569130

"dmc = DanMuClient('https://www.douyu.com/xxxxxx')
@dmc.danmu
def danmu_fn(msg):
if msg:
pp('[%s] %s' % (msg['NickName'], msg['Content']))
dmc.start(blockThread = True)"

from danmu.

Goldtype avatar Goldtype commented on July 19, 2024

在斗鱼里,爬取所用的api接口 其房间号是最开始创建的,不可更改。
当 主播发生 房间号变更时,实质上是产生了2个房间号,注销掉最开始的房间号,使用新的房间号。

如果在斗鱼中发现有直播间的id 无法正常获取消息,大概率是这个原因导致的。 这个逻辑只要作者再稍微补充一下即可。

from danmu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.