A BiliBili API library
Project description
bgetlib
bgetlib is a bilibili API library.
Install
pip install bgetlib
Quickstart
import bgetlib
from bgetlib.models import QualityOptions
bapi = bgetlib.BilibiliAPI("bilibili.com_cookies.txt")
# https://space.bilibili.com/36081646/favlist?fid=976082846
videos = bapi.get_favorites_all(976082846)
quality = QualityOptions()
for video in videos:
video_detail = bapi.get_video(video["id"])
for part in video_detail["pages"]:
bapi.save_stream(video_detail["aid"], part["cid"], quality, f"av{video['id']}-P{part['page']}.mp4")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bgetlib-3.2.8.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bgetlib-3.2.8-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file bgetlib-3.2.8.tar.gz.
File metadata
- Download URL: bgetlib-3.2.8.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3971f448a31b95f84d987492eecc57c7c3c76b0a8b9728357320aaa7dd4acec1
|
|
| MD5 |
f15b777a7cf2c353b4d8551d7e19cd91
|
|
| BLAKE2b-256 |
6c8c858f52f70741a79a5123dac47604a32206c4f5024f70c7c3114cb340b874
|
File details
Details for the file bgetlib-3.2.8-py3-none-any.whl.
File metadata
- Download URL: bgetlib-3.2.8-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.9 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e21a505b3c8365acdaf07dc76ca915304d71816cb8a4fd44b468f5dc67d339
|
|
| MD5 |
be4ceb747e96105071f9e09204c30059
|
|
| BLAKE2b-256 |
fd5cb7213faeca2630e2d716038ed06eb410f369f88fadc5e27adb34dfa1c315
|