MCPcopy Index your code
hub / github.com/Ghauster/Bilivideoinfo

github.com/Ghauster/Bilivideoinfo @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3 symbols 12 edges 1 files 0 documented · 0% updated 3y ago★ 14010 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

B站视频信息爬虫

Bilibili 视频数据爬虫,能批量爬取指定视频的信息。

好用的话记得给个star

亮点

  • 爬取的数据全面:包括:标题链接up主up主id精确播放数历史累计弹幕数点赞数投硬币枚数收藏人数转发人数发布时间视频时长(秒)视频简介作者简介标签(分区、参与的创作活动等等内容也都会成为视频的标签)和视频aid image

  • 爬取的是精确数据:例如,播放数是精确的数值(如 123456,而非 12.3 万)

使用方法

  1. 将需要爬取的视频链接(http或https开头)或视频 ID(bid) 列表存储在名为 idlist.txt 的文件中,每行一个
  2. 运行 python scraper.py
  3. 爬取的数据将保存到名为 output.xlsx 的 Excel 文件中
  4. 如果有出错,出错的记录会保存到video_errorlist.txt

注意事项

  • 不用登录,但请确保网络畅通
  • 请确保在运行代码之前已安装所需的 Python 库(如 requests、beautifulsoup4 和 openpyxl)

Core symbols most depended-on inside this repo

write_error_log
called by 1
scraper.py
is_url
called by 1
scraper.py
get_video_url
called by 1
scraper.py

Shape

Function 3

Languages

Python100%

Modules by API surface

scraper.py3 symbols

For agents

$ claude mcp add Bilivideoinfo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page