Archived
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.
eec20952a9553e74872b982e45f4506eccdaf30c
T
- 上方的计数器为不更新版本只保留了最基本的功能
Python 版访问次数计数器 使用了flask 作为服务端接收请求
开源
- 本项目以Apache-2.0许可开源, 即:
- 你可以直接使用该项目提供的功能, 无需任何授权
- 你可以在注明来源版权信息的情况下对源代码进行任意分发和修改以及衍生
部署
在部署之前你需要先安装
python3.10.x以上的版本
已部署好的地址
- Click to enter
- 默认主题:
lewd
部署到Heroku
fork本项目到你的仓库- 在Heroku 注册账号
- 在Dashboard 新建App
- 流程: 进入网址 -> 点击右上角
New-> 点击Create new app-> 输入App名称 ->Create app-> 选择Github(登陆完成后) -> 点击Search-> 选择你fork的项目并点击Connect-> 滑到末尾点击Deploy branch(如果你想在仓库更新时自动部署的话可以把Enable Automatic Deploy勾选) -> 等待完成 - App的地址就是
App名称+.herokuapp.com
部署到本地服务器
$ git clone https://github.com/MarkusJoe/RequestCounter.git
$ cd RequestCounter
$ pip3 install -r requirements.txt
$ python3 app.py
调用须知
- API支持
GET和POST方法请求 - 最大可以计数
10位数, 超过则重置 - 可以自定义显示位数默认
7位数最大10位 - 可以自己选择更多的主题只需要加上请求参数:
theme再加上想要的主题即可
一些信息
- 使用了Python3.6 的标准库
Sqlite3进行数据库操作
Languages
Python
87.6%
HTML
10.9%
JavaScript
1%
CSS
0.4%