mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
Compare commits
2 Commits
4067f3c6df
...
9a708df324
Author | SHA1 | Date | |
---|---|---|---|
|
9a708df324 | ||
|
7e0acf1f98 |
2
.flake8
2
.flake8
@ -1,5 +1,5 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
max-line-length = 88
|
||||
max-complexity = 24
|
||||
ignore = F401, W503, E203, E501, F841, E722, C901
|
||||
exclude =
|
||||
|
@ -1 +1 @@
|
||||
__version__ = "24.5.15"
|
||||
__version__ = "24.10.8"
|
||||
|
@ -17,14 +17,14 @@ class Baidu(CheckIn):
|
||||
def url_submit(data_url: str, submit_url: str, times: int = 100) -> str:
|
||||
site = parse.parse_qs(parse.urlsplit(submit_url).query).get("site")[0]
|
||||
urls_data = requests.get(url=data_url)
|
||||
remian = 100000
|
||||
remain = 100000
|
||||
success_count = 0
|
||||
error_count = 0
|
||||
for one in range(times):
|
||||
try:
|
||||
response = requests.post(url=submit_url, data=urls_data)
|
||||
if response.json().get("success"):
|
||||
remian = response.json().get("remain")
|
||||
remain = response.json().get("remain")
|
||||
success_count += response.json().get("success")
|
||||
else:
|
||||
error_count += 1
|
||||
@ -33,7 +33,7 @@ class Baidu(CheckIn):
|
||||
error_count += 1
|
||||
msg = [
|
||||
{"name": "站点地址", "value": site},
|
||||
{"name": "剩余条数", "value": remian},
|
||||
{"name": "剩余条数", "value": remain},
|
||||
{"name": "成功条数", "value": success_count},
|
||||
{"name": "成功次数", "value": times - error_count},
|
||||
{"name": "失败次数", "value": error_count},
|
||||
|
@ -19,9 +19,9 @@ class MiMotion(CheckIn):
|
||||
}
|
||||
|
||||
def get_time(self):
|
||||
url = "http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp"
|
||||
url = "https://f.m.suning.com/api/ct.do"
|
||||
response = requests.get(url, headers=self.headers).json()
|
||||
t = response["data"]["t"]
|
||||
t = response["currentTime"]
|
||||
return t
|
||||
|
||||
def get_app_token(self, login_token):
|
||||
|
7
docs/pages/history/2024-10-08.mdx
Normal file
7
docs/pages/history/2024-10-08.mdx
Normal file
@ -0,0 +1,7 @@
|
||||
# 2024-10-08
|
||||
|
||||
![PyPI](https://img.shields.io/badge/Pypi-v24.10.8-brightgreen)
|
||||
|
||||
## 🐛 修复
|
||||
|
||||
- 修复「小米运动」获取时间戳失败的问题
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"2024-10-08": "2024-10-08",
|
||||
"2024-05-15": "2024-05-15",
|
||||
"2024-03-19": "2024-03-19",
|
||||
"2024-03-11": "2024-03-11",
|
||||
|
@ -51,7 +51,6 @@
|
||||
## 🧾 列表
|
||||
|
||||
🟢: 正常运行 🔴: 脚本暂不可用 🔵: 可以执行(需更新) 🟡: 待测试 🟤: 看脸
|
||||
|
||||
| 状态 | 任务名称 | 名称网站 | 检查日期 | 备注 |
|
||||
| ---- | -------- | ---------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 🟢️ | KGQQ | [全民 K 歌](https://kg.qq.com/index-pc.html) | 24.02.20 | 每日签到获取鲜花 每日大约 120 鲜花左右 |
|
||||
|
@ -110,9 +110,9 @@ import { Steps } from 'nextra/components'
|
||||
|
||||
### 点击 Network 标签
|
||||
|
||||
### 选择 Doc 标签
|
||||
### 选择 Fetch/XHR 标签
|
||||
|
||||
### 选中 www.bilibili.com
|
||||
### 选中 https://api.bilibili.com/x/space/user/setting/list
|
||||
|
||||
### 下滑找到 cookie 全选复制即可
|
||||
|
||||
|
@ -72,13 +72,13 @@ const config: DocsThemeConfig = {
|
||||
}
|
||||
},
|
||||
banner: {
|
||||
key: '2024.5.15-release',
|
||||
key: '2024.10.8-release',
|
||||
text: (
|
||||
<a
|
||||
href="/dailycheckin/history/2024-05-15/"
|
||||
href="/dailycheckin/history/2024-10-08/"
|
||||
target="_blank"
|
||||
>
|
||||
🎉 DailyCheckIn 2024.5.15 is released. Read more →
|
||||
🎉 DailyCheckIn 2024.10.8 is released. Read more →
|
||||
</a>
|
||||
),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user