This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
T
2022-02-10 13:13:48 +08:00
2022-02-10 13:03:02 +08:00
2022-02-10 13:03:02 +08:00
2022-02-09 23:43:58 +08:00
2022-02-09 18:05:02 +08:00
2022-02-07 17:21:37 +08:00
2022-02-10 13:13:48 +08:00
2022-02-10 13:13:40 +08:00
2022-02-09 17:46:16 +08:00
2022-02-10 13:13:40 +08:00

PythonVersion LICENSE FlaskVersion

Counter

Python 版访问次数计数器使用了flask 作为服务端接收请求

开源

  • 本项目以Apache-2.0许可开源, 即:
    • 你可以直接使用该项目提供的功能, 无需任何授权
    • 你可以在注明来源版权信息的情况下对源代码进行任意分发和修改以及衍生

部署

由于对vercel不熟悉, vercel的配置文件搞不明白所以暂时没有vercel的配置文件, 我也试了很多方法去部署但是要么是500要么是400

在部署之前你需要先安装python3.10.x以上的版本

部署到本地服务器

$ git clone https://github.com/MarkusJoe/RequestCounter.git
$ cd RequestCounter
$ pip3 install -r requirements.txt
$ python3 app.py 

调用须知

  • API支持GETPOST 方法请求
  • 最大可以计数10位数, 超过则重置
  • 可以自定义显示位数默认7位数最大10
  • 可以自己选择更多的主题只需要加上请求参数: theme 再加上想要的主题即可
  • theme请求参数中写入ls可以获取所有可选的主题 (来自于./bin/assets/theme.db)

一些信息

  • 使用了Python3.6 的标准库Sqlite3进行数据库操作
  • 当前支持的主题如下
foot
gelbooru
gelbooruh
moebooru
moebooruh
g
cripple
blacked
allgirl
rule34
steambanner
lefty
erpg
crewbooru
hgoon
sthg
rfck
lisu
tv
lewd
amibooru
blankatlas
mmballbusting
sss
legolamb
goldengator
r6gdrawfriends
vivi
twifanartsfw
hololive
vglobby
jaypee
melanin
dollstuffing
orb
min
mjg
cloppers
townofgravityfalls
brown
enacdoa
daifuku
straponff
keyofnik
osc
konan
girlsfeet
hybreedsgeneral
sr
mono
riskofrain
neovb
ffsr
  • 仓库总共约4.12Mb theme.db占用了4Mb ...
S
Description
No description provided
Readme Apache-2.0
11 MiB
1 Watchers 0 Forks
Languages
Python 87.6%
HTML 10.9%
JavaScript 1%
CSS 0.4%