Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uyoungco/puppeteer-bilibili-up-dynamic
bilibili UP主动态截图工具
https://github.com/uyoungco/puppeteer-bilibili-up-dynamic
Last synced: about 2 months ago
JSON representation
bilibili UP主动态截图工具
- Host: GitHub
- URL: https://github.com/uyoungco/puppeteer-bilibili-up-dynamic
- Owner: uyoungco
- Created: 2021-07-29T06:04:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T09:39:27.000Z (over 2 years ago)
- Last Synced: 2024-08-01T02:29:41.313Z (4 months ago)
- Language: JavaScript
- Size: 157 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bilibili-extra - Puppeteer-bilibili-up-dynamic - bilibili UP 主动态截图工具.![JavaScript](svg/javascript.svg?raw=true) ![Docker](svg/docker.svg?raw=true) (其他 / 直播脚本)
README
## bilibili UP动态截图(puppeteer-bilibili-up-dynamic)
```shell
$ git clone https://github.com/uyoungco/puppeteer-bilibili-up-dynamic.git
$ cd puppeteer-bilibili-up-dynamic
$ yarn install
$ yarn dev
```#### 获取最近一条动态截图
http://localhost:8081/api/puppeteer/v1/screenshot?id=[UP主ID]返回数据:
```json
{
"code": 200,
"message": "成功",
"data": "data:image/jpg;base64,xxxxxxxxxxx",
}
```#### 获取指定动态截图
http://localhost:8081/api/puppeteer/v1/screenshot?tid=[动态ID]返回数据:
```json
{
"code": 200,
"message": "成功",
"data": "data:image/jpg;base64,xxxxxxxxxxx",
}
```#### 部署
推荐使用docker部署我都封装好了