📺Update a pinned gist to show your Bilibili stats and your latest videos.📺
中文|English
📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
-
Create a public GitHub Gist. (https://gist.github.com/)
-
Create a has
gist
permissions token then copy it. (https://github.com/settings/tokens/new) -
Follow the documents to get
SESSDATA
's key then copy it.(https://nemo2011.github.io/bilibili-api/#/get-credential) -
Find UID in Bilibili personal space link (https://space.bilibili.com/282873551)
-
Fork this repository.
-
Edit the env in file
.github/workflows/main.yml
. -
Go to Settings > Secrets.
-
Click New repository secret and add the repository secrets below :
- GH_TOKEN: GitHub token
- BILI_SESSDATA: SESSDATA
-
Go to Actions > Update gist then click
enable workflows
.
Use this sample to your workflow file.
- name: Update gist
uses: luyanci/bilibili-gist-py@master
with:
ghtoken: ${{ secrets.GH_TOKEN }}
gistid: 181a99b82ae47d3a6fccbd126f9d93ef
sessdata: ${{ secrets.BILI_SESSDATA }}
biliuid: '282873551'
-
Clone this repository.
-
Install the requirements by the command below.
pip install -r requirements.txt
-
Copy
.env.example
file,and rename to.env
,then edit it. -
Run the gist.py by the command below.
py gist.py
-
Use bilibili-api-python to get some details on bilibili.
-
Use Github Actions to Auto update the Gist.
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.