Giter Site home page Giter Site logo

biilibili_all_danmu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

biilibili_all_danmu's Issues

使用许可

尊敬的作者,您好,我想将您的这个项目运用于社会语言学(主要是网络用语方面)课程论文的数据获取,仅用于学习交流,不用做商业用途,可以允许吗?
另外,报告一个小bug,您的项目的根目录下少建立了一个名为sqlite3的空文件夹,在运行时会报错,建议修复。

在获取2022年12月之后的弹幕发生报错

作者大佬你好!

我是使用的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.

爬取2021年4月及更早视频出现 KeyError: 'data' 报错

使用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'

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.