bgetlib


Namebgetlib JSON
Version 3.2.8 PyPI version JSON
download
home_pagehttps://bgetlib.docs.josephcz.xyz/
SummaryA BiliBili API library
upload_time2023-01-06 09:26:57
maintainer
docs_urlNone
authorJoseph Chris
requires_python>=3.8,<4.0
licenseMIT
keywords bilibili
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # bgetlib
<a href="https://bgetlib.docs.josephcz.xyz/">
    <img alt="Documentation" src="https://img.shields.io/badge/Documentation-66ccff">
</a>
<a href="https://github.com/baobao1270/bgetlib/blob/master/CHANGELOG">
    <img alt="Changelog" src="https://img.shields.io/badge/Changelog-ee0000">
</a>
<a href="https://pypi.org/project/bgetlib/#history">
    <img alt="Version" src="https://img.shields.io/pypi/v/bgetlib"></a>
<a href="https://github.com/baobao1270/bgetlib/issues">
    <img alt="Issues" src="https://img.shields.io/github/issues/baobao1270/bgetlib"></a>
<a href="https://github.com/baobao1270/bgetlib/blob/master/LICENSE">
    <img alt="License" src="https://img.shields.io/github/license/baobao1270/bgetlib">
</a>

**bgetlib** is a bilibili API library.

## Install
```shell
pip install bgetlib
```

## Quickstart
```python
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")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://bgetlib.docs.josephcz.xyz/",
    "name": "bgetlib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "bilibili",
    "author": "Joseph Chris",
    "author_email": "joseph@josephcz.xyz",
    "download_url": "https://files.pythonhosted.org/packages/6c/8c/858f52f70741a79a5123dac47604a32206c4f5024f70c7c3114cb340b874/bgetlib-3.2.8.tar.gz",
    "platform": null,
    "description": "# bgetlib\n<a href=\"https://bgetlib.docs.josephcz.xyz/\">\n    <img alt=\"Documentation\" src=\"https://img.shields.io/badge/Documentation-66ccff\">\n</a>\n<a href=\"https://github.com/baobao1270/bgetlib/blob/master/CHANGELOG\">\n    <img alt=\"Changelog\" src=\"https://img.shields.io/badge/Changelog-ee0000\">\n</a>\n<a href=\"https://pypi.org/project/bgetlib/#history\">\n    <img alt=\"Version\" src=\"https://img.shields.io/pypi/v/bgetlib\"></a>\n<a href=\"https://github.com/baobao1270/bgetlib/issues\">\n    <img alt=\"Issues\" src=\"https://img.shields.io/github/issues/baobao1270/bgetlib\"></a>\n<a href=\"https://github.com/baobao1270/bgetlib/blob/master/LICENSE\">\n    <img alt=\"License\" src=\"https://img.shields.io/github/license/baobao1270/bgetlib\">\n</a>\n\n**bgetlib** is a bilibili API library.\n\n## Install\n```shell\npip install bgetlib\n```\n\n## Quickstart\n```python\nimport bgetlib\nfrom bgetlib.models import QualityOptions\n\nbapi = bgetlib.BilibiliAPI(\"bilibili.com_cookies.txt\")\n# https://space.bilibili.com/36081646/favlist?fid=976082846\nvideos = bapi.get_favorites_all(976082846)\nquality = QualityOptions()\n\nfor video in videos:\n    video_detail = bapi.get_video(video[\"id\"])\n    for part in video_detail[\"pages\"]:\n        bapi.save_stream(video_detail[\"aid\"], part[\"cid\"], quality, f\"av{video['id']}-P{part['page']}.mp4\")\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A BiliBili API library",
    "version": "3.2.8",
    "split_keywords": [
        "bilibili"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd5cb7213faeca2630e2d716038ed06eb410f369f88fadc5e27adb34dfa1c315",
                "md5": "be4ceb747e96105071f9e09204c30059",
                "sha256": "d6e21a505b3c8365acdaf07dc76ca915304d71816cb8a4fd44b468f5dc67d339"
            },
            "downloads": -1,
            "filename": "bgetlib-3.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "be4ceb747e96105071f9e09204c30059",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 10963,
            "upload_time": "2023-01-06T09:26:56",
            "upload_time_iso_8601": "2023-01-06T09:26:56.158547Z",
            "url": "https://files.pythonhosted.org/packages/fd/5c/b7213faeca2630e2d716038ed06eb410f369f88fadc5e27adb34dfa1c315/bgetlib-3.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c8c858f52f70741a79a5123dac47604a32206c4f5024f70c7c3114cb340b874",
                "md5": "f15b777a7cf2c353b4d8551d7e19cd91",
                "sha256": "3971f448a31b95f84d987492eecc57c7c3c76b0a8b9728357320aaa7dd4acec1"
            },
            "downloads": -1,
            "filename": "bgetlib-3.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "f15b777a7cf2c353b4d8551d7e19cd91",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 8918,
            "upload_time": "2023-01-06T09:26:57",
            "upload_time_iso_8601": "2023-01-06T09:26:57.848366Z",
            "url": "https://files.pythonhosted.org/packages/6c/8c/858f52f70741a79a5123dac47604a32206c4f5024f70c7c3114cb340b874/bgetlib-3.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-06 09:26:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "bgetlib"
}
        
Elapsed time: 0.29281s