Archived
修复bug
This commit is contained in:
21 files changed
+212
-78
No files matched your search
Whitespace-only changes.
+26
-13
@@ -1,6 +1,15 @@
|
||||
# 这里是`Request Counter`的文档
|
||||
虽然说项目很小根本不需要文档
|
||||
# 这里是Request Counter的文档
|
||||
> 虽然说项目很小根本不需要文档
|
||||
|
||||
# 灵感来源
|
||||
[Moe-Counter](https://github.com/MarkusJoe/Moe-counter)
|
||||
> 看到这个项目感觉挺有意思就用Python写了一个 此项目中添加了原项目中没有的功能 `Length` `设置长度`
|
||||
|
||||
# 工作原理
|
||||
使用Flask建立服务器接收请求分析获取到的数据写入数据库
|
||||
|
||||
# 部署
|
||||
> 在部署之前你需要先安装`python3.9.x`以上的版本
|
||||
## 部署到本地服务器
|
||||
```shell
|
||||
$ git clone https://git@github.com:MarkusJoe/RequestCounter.git
|
||||
@@ -9,9 +18,8 @@
|
||||
$ python3 app.py
|
||||
```
|
||||
|
||||
> 程序还支持自定义图片的大小需要在`./bin/core/length.py` 中修改 `make_html`函数的参数
|
||||
|
||||
### 基本信息
|
||||
# 基本信息
|
||||
- Python版本: `3.9.9`
|
||||
- 请求方法: `GET` `POST`
|
||||
- 请求地址: `/API`
|
||||
@@ -20,18 +28,13 @@
|
||||
- 可选参数: `theme` : `str`
|
||||
|
||||
|
||||
### 注意事项
|
||||
# 注意事项
|
||||
- Python版能最新版就最新版
|
||||
- 项目使用了标准库`Sqlite3`进行了数据库操作某些免费部署的服务器可能不支持
|
||||
- 项目使用了标准库`Sqlite3`进行了数据库操作某些可以部署项目的服务器可能不支持例如`vercel`(可能是我不会)
|
||||
|
||||
|
||||
### 开源
|
||||
- 本项目以Apache-2.0许可开源, 即:
|
||||
- 你可以直接使用该项目提供的功能, 无需任何授权
|
||||
- 你可以在**注明来源版权信息**的情况下对源代码进行任意分发和修改以及衍生
|
||||
|
||||
|
||||
### 快速响应:
|
||||
# 快速响应
|
||||
测试用代码如下
|
||||
```python
|
||||
import requests
|
||||
|
||||
@@ -146,4 +149,14 @@ for i in range(100):
|
||||
17557<br>
|
||||
16587<br>
|
||||
</details>
|
||||
<br>
|
||||
|
||||
# 关于
|
||||
## 开源
|
||||
- 本项目以Apache-2.0许可开源, 即:
|
||||
- 你可以直接使用该项目提供的功能, 无需任何授权
|
||||
- 你可以在**注明来源版权信息**的情况下对源代码进行任意分发和修改以及衍生
|
||||
|
||||
## 关于此页面
|
||||
此文档由 [docsify](https://github.com/docsifyjs/docsify) 生成. docsify 是一个动态生成文档网站的工具。不同于 GitBook、Hexo 的地方是它不会生成将 .md 转成 .html 文件,所有转换工作都是在运行时进行。
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||

|
||||
|
||||
# RequestCounter
|
||||
|
||||
> Python版的计数器
|
||||
|
||||
> 使用Python Flask 库完成的访问的次数计数器
|
||||
|
||||
* 响应速度快
|
||||
* 使用Sqlite3数据库操作
|
||||
|
||||
[GitHub](https://github.com/MarkusJoe/RequestCounter.git)
|
||||
[Get Started](#部署)
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Document</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: 'RequestCounter',
|
||||
repo: 'https://github.com/MarkusJoe/RequestCounter',
|
||||
coverpage: true
|
||||
}
|
||||
</script>
|
||||
<!-- Docsify v4 -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user