dnlinyj / biilibili_all_danmu Goto Github PK
View Code? Open in Web Editor NEWBilibili(B站)全弹幕获取程序
License: Apache License 2.0
Bilibili(B站)全弹幕获取程序
License: Apache License 2.0
尊敬的作者,您好,我想将您的这个项目运用于社会语言学(主要是网络用语方面)课程论文的数据获取,仅用于学习交流,不用做商业用途,可以允许吗?
另外,报告一个小bug,您的项目的根目录下少建立了一个名为sqlite3的空文件夹,在运行时会报错,建议修复。
作者大佬你好!
我是使用的python3.11。我在获取2022年12月1日份起至之后的弹幕出现了下述报错。2022年12月以前的弹幕可正常获取。
我另外尝试了今年的视频,同样会报错。
希望您能帮忙解答,谢谢大佬!
Traceback (most recent call last):
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\python_message.py", line 1128, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\python_message.py", line 1181, in InternalParse
(data, new_pos) = decoder._DecodeUnknownField(
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\decoder.py", line 961, in _DecodeUnknownField
(data, pos) = _DecodeUnknownFieldSet(buffer, pos)
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\decoder.py", line 935, in _DecodeUnknownFieldSet
(tag_bytes, pos) = ReadTag(buffer, pos)
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\decoder.py", line 174, in ReadTag
while buffer[pos] & 0x80:
IndexError: index out of bounds on dimension 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\Main.py", line 193, in
Meum()
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\Main.py", line 123, in Meum
result = GetAllDanmuInfo(user_input, headers)
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\GetAllDanmuInfo_V2.py", line 167, in GetAllDanmuInfo
danmaku_seg.ParseFromString(req.content)
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\message.py", line 199, in ParseFromString
return self.MergeFromString(serialized)
File "C:\Users\xxx\Desktop\Biilibili_All_Danmu-master\venv\Lib\site-packages\google\protobuf\internal\python_message.py", line 1134, in MergeFromString
raise message_mod.DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.
使用Python 3.12,爬取2021年4月及更早的视频时都会出现下面的报错信息。我看大佬的测试用了2018年的视频,我也尝试了一下,同样会出现如下的错误。
希望您能帮忙解答,谢谢大佬!
Traceback (most recent call last):
File "D:\Biilibili_All_Danmu-master\Main.py", line 193, in
Meum()
File "D:\Biilibili_All_Danmu-master\Main.py", line 177, in Meum
result = GetAllDanmuInfo(user_input, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Biilibili_All_Danmu-master\GetAllDanmuInfo_V2.py", line 82, in GetAllDanmuInfo
Time_list = RemoteBulitTimeList(
^^^^^^^^^^^^^^^^^^^^
File "D:\Biilibili_All_Danmu-master\RemoteBulitTimeList.py", line 25, in RemoteBulitTimeList
if json.loads(req.text)['data'] != None:
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'data'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.