Skip to content

Latest commit

 

History

History
96 lines (61 loc) · 2.85 KB

readme_en.md

File metadata and controls

96 lines (61 loc) · 2.85 KB

1000054481

Bilibili Gist Python

📺Update a pinned gist to show your Bilibili stats and your latest videos.📺

Update gist


📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists


Usage

Prepare

  1. Create a public GitHub Gist. (https://gist.github.com/)

  2. Create a has gist permissions token then copy it. (https://github.com/settings/tokens/new)

  3. Follow the documents to getSESSDATA's key then copy it.(https://nemo2011.github.io/bilibili-api/#/get-credential)

Deploy

  1. Fork this repository.

  2. Edit the env in file .github/workflows/main.yml.

  3. Go to Settings > Secrets.

  4. Click New repository secret and add the repository secrets below :

    • GH_TOKEN: GitHub token
    • BILI_SESSDATA: SESSDATA
  5. Go to Actions > Update gist then click enable workflows.

Local test

  1. Clone this repository.

  2. Install the requirements by the command below.

pip install -r requirements.txt
  1. Copy.env.examplefile,and rename to .env,then edit it.

  2. Run the gist.py by the command below.

py gist.py

How it works?

  • Use bilibili-api-python to get some details on bilibili.

  • Use Github Actions to Auto update the Gist.

Helps

bilibili-api-python

bilibili-box

chess-com-box-py

License

Used MIT License on this repository.

 The MIT License (MIT)
 Copyright (c) 2024 luyanci

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
 OR OTHER DEALINGS IN THE SOFTWARE.