Upload 5 files
Browse files- Dockerfile +11 -0
- README.md +5 -6
- access_token.txt +16 -0
- app.py +64 -0
- requirements.txt +2 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
-
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: c2a
|
3 |
+
emoji: 🌍
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: indigo
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
+
license: mit
|
9 |
---
|
|
|
|
access_token.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJzZXNzaW9uX2lkIjoiODJDaVdIN2p6MmpTNWZXMnlpcXRxbHVlSV84MjdkaUgiLCJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiIwMUAxNjgzNjkueHl6IiwiZW1haWxfdmVyaWZpZWQiOnRydWV9LCJod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ZSI6Im9wZW5pZCBwcm9maWxlIGVtYWlsIG1vZGVsLnJlYWQgbW9kZWwucmVxdWVzdCBvcmdhbml6YXRpb24ucmVhZCBvcmdhbml6YXRpb24ud3JpdGUgb2ZmbGluZV9hY2Nlc3MiLCJhenAiOiJwZGxMSVgyWTcyTUlsMnJoTGhURTlWVjliTjkwNWtCaCJ9.Kxr1HwpQOm22DIYxOUVBeXv0AECbxrdh6pFIWKNps0er8KYK4gEiMXIndSZZ3Q8z83VpVcHKI7Rsc31AF5NAV6kGuQsMb3IwCuOrfaYnJCAZ18e8oJNSXSutKNImBDJH6UVXi7wx52NuyNS7BW-Ss2qQOARGC-T7qx83EygC_MLoFYVEDHTV1WbLTWnT2BnChzQHpjMihMB5PLbm2ld8gYPIlVwPfbZbW7kHX1xSn1o5QysaDLOJkJkspyOmylNeOdXUANDUxmylgsldXlGMlKQavi2YH245SYo3zE8Mf49bplG-i4PEy-4TEexsK4gVvOsJ2_dEYc-4J6YrBvvkew
|
app.py
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
import schedule
|
3 |
+
import time
|
4 |
+
|
5 |
+
def read_and_prepare_tokens(file_path):
|
6 |
+
"""
|
7 |
+
从文件读取tokens并使用\r\n连接
|
8 |
+
"""
|
9 |
+
try:
|
10 |
+
with open(file_path, 'r') as file:
|
11 |
+
# 去除每行的空白字符,过滤掉空行
|
12 |
+
tokens = [line.strip() for line in file if line.strip()]
|
13 |
+
|
14 |
+
# 使用\r\n连接tokens
|
15 |
+
combined_token = '\r\n'.join(tokens)
|
16 |
+
return combined_token
|
17 |
+
|
18 |
+
except FileNotFoundError:
|
19 |
+
print(f"错误:文件 {file_path} 未找到")
|
20 |
+
return None
|
21 |
+
except Exception as e:
|
22 |
+
print(f"读取文件发生错误: {e}")
|
23 |
+
return None
|
24 |
+
|
25 |
+
def post_tokens():
|
26 |
+
"""
|
27 |
+
读取tokens并发送单次POST请求
|
28 |
+
"""
|
29 |
+
url = "https://c2a-wzjt.onrender.com/tokens/upload"
|
30 |
+
|
31 |
+
# 读取并准备tokens
|
32 |
+
combined_token = read_and_prepare_tokens('access_token.txt')
|
33 |
+
|
34 |
+
if not combined_token:
|
35 |
+
print("没有可用的tokens")
|
36 |
+
return
|
37 |
+
|
38 |
+
try:
|
39 |
+
payload = {"text": combined_token}
|
40 |
+
response = requests.post(url, data=payload)
|
41 |
+
|
42 |
+
print(f"POST请求时间: {time.strftime('%Y-%m-%d %H:%M:%S')}")
|
43 |
+
print(f"发送Token: {combined_token}")
|
44 |
+
print(f"发送Token长度: {len(combined_token)}")
|
45 |
+
print(f"响应状态码: {response.status_code}")
|
46 |
+
print(f"响应内容: {response.text}")
|
47 |
+
|
48 |
+
except Exception as e:
|
49 |
+
print(f"请求发生错误: {e}")
|
50 |
+
|
51 |
+
def main():
|
52 |
+
# 立即执行一次
|
53 |
+
post_tokens()
|
54 |
+
|
55 |
+
# 每30分钟执行一次
|
56 |
+
schedule.every(30).minutes.do(post_tokens)
|
57 |
+
|
58 |
+
# 持续运行
|
59 |
+
while True:
|
60 |
+
schedule.run_pending()
|
61 |
+
time.sleep(1)
|
62 |
+
|
63 |
+
if __name__ == "__main__":
|
64 |
+
main()
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
requests
|
2 |
+
schedule
|