Skip to main content

A BiliBili API library

Reason this release was yanked:

bug

Project description

bgetlib

Documentation Changelog Version Issues License

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


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.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

bgetlib-3.2.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file bgetlib-3.2.3.tar.gz.

File metadata

  • Download URL: bgetlib-3.2.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for bgetlib-3.2.3.tar.gz
Algorithm Hash digest
SHA256 57921b8fc4e2044d420da106deae10b41efe3af47ce527b3581798b4e9b0084e
MD5 b328ff868a72fbf6376590d063dc634e
BLAKE2b-256 26b0f52d310fc6b169e924d4c98c877c09d3febca61d5bf9f393de407cc8f5e8

See more details on using hashes here.

File details

Details for the file bgetlib-3.2.3-py3-none-any.whl.

File metadata

  • Download URL: bgetlib-3.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for bgetlib-3.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ebe675aa284e1644ea3c872a1709e689d89a5327f55d357826fbd47658b476c
MD5 adce2d8559c08eb5db50d1bd04f2aa7e
BLAKE2b-256 aa2d229ccf88f71cd792668ae2938cecdb59e9e10fccb33ead3ec98ebb6671ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page