Vespa314 / bilibili-api

B站API收集整理及开发,不再维护
MIT License
1.34k stars 193 forks source link

请求增加直播页面API #10

Open Sg4Dylan opened 8 years ago

Sg4Dylan commented 8 years ago

如题。 最基本的能获取及发送弹幕即可。 感谢。

cnbeining commented 8 years ago

哦 需要别的东西。

看我的gists。

2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:

如题。 最基本的能获取及发送弹幕即可。 感谢。

— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10.

Sg4Dylan commented 8 years ago

https://gist.github.com/cnbeining/6b2273d7e332f29193d0 这个么?只描述了连接WebSocket的操作

cnbeining commented 8 years ago

现在是xmlsocket。

连上了等着推。

2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:

https://gist.github.com/cnbeining/6b2273d7e332f29193d0 这个么?只描述了连接WebSocket的操作

— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10#issuecomment-169190620 .

Sg4Dylan commented 8 years ago

能提供具体的代码参考么? Python C++ 都行( 感谢~

cnbeining commented 8 years ago

看看我代码的fork们。

2016年1月5日星期二,Sg4Dylan notifications@github.com 写道:

能提供具体的代码参考么? Python C++ 都行( 感谢~

— Reply to this email directly or view it on GitHub https://github.com/Vespa314/bilibili-api/issues/10#issuecomment-169191373 .

Sg4Dylan commented 8 years ago

拿Python撸了个能连上了,不过因为B站的原因,即便有心跳存在也会偶发断线,接着socket.recv()就卡死线程了… 咱是单进程用threading创建两线程,一条处理心跳,一条处理recv()的。 菊苣有什么好方法处理么(迫切

cnbeining commented 8 years ago

完全不在乎 每秒检测 无限断线重连 反正不是我的服务器 我不care

Sg4Dylan commented 8 years ago

菊苣用多线程么,Python单进程跑这个一断线就连着检测用的部分一起卡死了

cnbeining commented 8 years ago

不用啊。

Socket是不是断了很简单可以检测啊。。。

Sg4Dylan commented 8 years ago

https://gist.github.com/Sg4Dylan/cdeaf8b2f73e726e350e 还有两个问题实在搞不定了(可怕