BilibiliAPI class

class bgetlib.BilibiliAPI(cookie_filename: Optional[str] = None)[source]

Bases: object

get_archive(category_id: int, tag_id: Optional[int] = None, page: int = 1) Tuple[int, List[dict]][source]
get_cover_picture(aid) Tuple[str, bytes][source]
get_favorites(favorite_id: int, page: int = 1) list[source]
get_favorites_all(favorite_id: int) List[dict][source]
get_favorites_since(favorite_id: int, from_timestamp: int) List[dict][source]
get_live_danmaku(cid: int) bytes[source]
get_sticker(sticker_id: int) dict[source]
get_stream(url: str, tag: str = '', chunk_size: int = 8192, callback: Optional[Callable[[bgetlib.models.DownloadProgress], None]] = None) bytes[source]
get_stream_url(aid: int, cid: int, quality_options: bgetlib.models.QualityOptions) dict[source]
get_video(aid: int) dict[source]
list_stickers() List[dict][source]
list_user_favourite_folders(uid: int) List[dict][source]
save_stream(aid: int, cid: int, quality_options: bgetlib.models.QualityOptions, dest_file: str, audio_only: bool = False, host: Optional[str] = None, chunk_size: int = 8192, callback: Optional[Callable[[bgetlib.models.DownloadProgress], None]] = None) subprocess.CompletedProcess[source]