# nemo2011/bilibili-api

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/nemo2011-bilibili-api).**

3,488 stars · 454 forks · Python · gpl-3.0

## Links

- GitHub: https://github.com/Nemo2011/bilibili-api
- Homepage: https://nemo2011.github.io/bilibili-api/
- awesome-repositories: https://awesome-repositories.com/repository/nemo2011-bilibili-api.md

## Topics

`api` `bilibili` `bilibili-api` `python` `spider`

## Description

bilibili-api is a Bilibili API wrapper and content scraper designed for programmatically accessing video metadata, user profiles, and content data. It functions as an anti-bot crawler framework and a WebSocket live chat client for retrieving platform information and real-time interaction data.

The project incorporates tools to bypass anti-crawling measures and rate limits through the use of proxies and TLS fingerprint spoofing. It also includes logic for mapping and converting various video and content identifiers to ensure consistent data retrieval across different endpoints.

Its capability surface covers Bilibili data extraction, live stream monitoring, and media archiving, which includes downloading subtitles and comment files. The library also provides functionality to extract text and data from articles and columns via web crawling.

## Tags

### Graphics & Multimedia

- [Data Extraction](https://awesome-repositories.com/f/graphics-multimedia/video-downloaders/bilibili-video-downloads/data-extraction.md) — Provides a programmatic wrapper to retrieve Bilibili video metadata, audio info, and user profiles. ([source](https://nemo2011.github.io/bilibili-api))
- [Content Restriction Bypasses](https://awesome-repositories.com/f/graphics-multimedia/content-restriction-bypasses.md) — Uses proxies and browser fingerprints to bypass bot detection and prevent IP bans. ([source](https://cdn.jsdelivr.net/gh/nemo2011/bilibili-api@main/README.md))
- [Video Content](https://awesome-repositories.com/f/graphics-multimedia/media-production-suites/graphics-media-assets/media-assets/video-content.md) — Retrieves video metadata and facilitates user actions using specific Bilibili video identifiers. ([source](https://cdn.jsdelivr.net/gh/nemo2011/bilibili-api@main/README.md))
- [Metadata Extraction](https://awesome-repositories.com/f/graphics-multimedia/video-downloaders/bilibili-video-downloads/metadata-extraction.md) — Retrieves video metadata, user information, and article content from Bilibili via automated API requests.
- [Interaction Monitoring](https://awesome-repositories.com/f/graphics-multimedia/video-stream-processing/live-video-stream-monitoring/interaction-monitoring.md) — Connects to WebSocket servers to capture real-time chat messages and interaction data from Bilibili live streams.
- [Offline Media Archiving](https://awesome-repositories.com/f/graphics-multimedia/offline-media-archiving.md) — Downloads subtitles and comment files for long-term preservation and offline access.

### Software Engineering & Architecture

- [API Wrappers](https://awesome-repositories.com/f/software-engineering-architecture/api-wrappers.md) — Provides a structured programmatic interface to access Bilibili video metadata, user profiles, and content data.

### Part of an Awesome List

- [WebSockets and Real-time](https://awesome-repositories.com/f/awesome-lists/devtools/websockets-and-real-time.md) — Maintains persistent WebSocket connections to receive real-time chat and interaction data from Bilibili live streams.

### Business & Productivity Software

- [Bilibili Content Scrapers](https://awesome-repositories.com/f/business-productivity-software/content-publishing/video-publishing-integrations/bilibili-content-scrapers.md) — Implements a scraper to extract text and data from articles, columns, subtitles, and comments.
- [Bilibili Media Downloads](https://awesome-repositories.com/f/business-productivity-software/media-downloaders/bilibili-media-downloads.md) — Fetches Bilibili subtitles and comment files for local offline storage. ([source](https://cdn.jsdelivr.net/gh/nemo2011/bilibili-api@main/README.md))

### Networking & Communication

- [Asynchronous HTTP Clients](https://awesome-repositories.com/f/networking-communication/asynchronous-http-clients.md) — Provides an asynchronous HTTP client pipeline for concurrent retrieval of Bilibili metadata and user information.
- [Proxy Routing](https://awesome-repositories.com/f/networking-communication/request-proxies/proxy-routing.md) — Routes network traffic through a rotating set of proxy servers to avoid IP-based rate limits.
- [WebSocket Clients](https://awesome-repositories.com/f/networking-communication/websocket-clients.md) — Maintains persistent WebSocket connections to retrieve real-time chat messages and interaction data from live streams.

### Security & Cryptography

- [Anti-Bot Evasion](https://awesome-repositories.com/f/security-cryptography/bot-detection/anti-bot-evasion.md) — Ships a framework that mimics browser fingerprints and headers to evade bot detection services.
- [Traffic Mitigation Bypasses](https://awesome-repositories.com/f/security-cryptography/browser-security-policies/automation-bypasses/traffic-mitigation-bypasses.md) — Bypasses bot detection services and rate limits using proxies and TLS fingerprinting. ([source](https://nemo2011.github.io/bilibili-api))
- [TLS Fingerprint Impersonators](https://awesome-repositories.com/f/security-cryptography/device-fingerprinting/fingerprint-configuration/tls-fingerprinting/tls-fingerprint-impersonators.md) — Impersonates specific browser TLS fingerprints to bypass security filters and avoid bot detection.

### User Interface & Experience

- [Live Stream Chat Interactions](https://awesome-repositories.com/f/user-interface-experience/live-stream-dashboards/live-stream-chat-interactions.md) — Establishes real-time connections to Bilibili stream servers to receive instant chat messages. ([source](https://nemo2011.github.io/bilibili-api))
- [Real-Time Data Capture](https://awesome-repositories.com/f/user-interface-experience/live-stream-dashboards/live-stream-chat-interactions/real-time-data-capture.md) — Connects to socket servers to capture real-time comments and interaction data from Bilibili live streams. ([source](https://cdn.jsdelivr.net/gh/nemo2011/bilibili-api@main/README.md))

### Web Development

- [Web Scraping Evasion Tools](https://awesome-repositories.com/f/web-development/web-automation-scraping/web-scraping-automation/web-scraping-evasion-tools.md) — Implements proxies and TLS fingerprint spoofing to bypass rate limits and security filters during data collection.
- [Web Crawling](https://awesome-repositories.com/f/web-development/web-automation-scraping/web-scraping-automation/web-crawling.md) — Implements web crawling to extract text and data from Bilibili articles and columns by simulating browser behavior.

### Content Management & Publishing

- [Web Article Extraction](https://awesome-repositories.com/f/content-management-publishing/web-article-extraction.md) — Retrieves text and structured data from Bilibili articles and columns using a web crawler. ([source](https://cdn.jsdelivr.net/gh/nemo2011/bilibili-api@main/README.md))
