Giter Site home page Giter Site logo

ttccgc / bilivideoinfo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ghauster/bilivideoinfo

0.0 0.0 0.0 486 KB

Bilibili视频数据爬虫 精确爬取完整的b站视频数据,包括标题、up主、up主id、精确播放数、历史累计弹幕数、点赞数、投硬币枚数、收藏人数、转发人数、发布时间、视频时长、视频简介、作者简介和标签

License: MIT License

Python 100.00%

bilivideoinfo's Introduction

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)

bilivideoinfo's People

Contributors

ghauster avatar

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.