Skip to content

PT站点数据管理,自动记录每天的上传量

Notifications You must be signed in to change notification settings

hansnow/pt-dashboard

Repository files navigation

PT DASHBOARD

PT 站点数据管理,自动记录每天的上传量。

API

用户管理

注册

POST /register

Request
key type
username string
password string

登录

POST /login

Request
key type
username string
password string

注销

GET /logout

指令

添加站点

POST /site

Request
key type
type 'ourbits' | 'mteam'
username string
password string
otp string
rule string

获取站点列表

GET /site

删除站点

DELETE /site/:id

更新站点信息

PUT /site/:id

Request
key type
type 'cookie' | 'rule'
username string
password string
otp string
rule string

typecookie时,可以传所有参数,否则参数只能是rule

立即抓取

POST /site/:id/history

获取数据

获取已添加站点

GET /site

Response
key type
siteID string
siteUsername string
upload string
lastRecord Record

获取该站点历史数据

GET /site/:id/history

Request
key type
page number
limit number
Response
key type
total number
records Record[]

获取站点的绘图数据

该接口获取的是过去 n 天,每天最后一次爬到的数据,如果某天没数据,则返回结果中不会出现这一天。

GET /site/:id/chart

Request
key type
delta number

获取 crontab 的人类可读描述

GET /cron-descriptor

Request
key type
cron string

About

PT站点数据管理,自动记录每天的上传量

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published