mirror of
https://github.com/HChaZZY/NodeSeek-Signin.git
synced 2025-12-06 11:33:49 +08:00
新增通过 `docker-compose` 进行部署和运行的方式,实现了本地自动化定时签到。 主要更新包括: - 引入 `scheduler.py` 脚本,根据 `RUN_AT` 环境变量管理定时任务,支持固定时间或随机时间范围。 - 在 Docker 环境中,Cookie 将被持久化到 `./cookie` 卷中,以在容器重启后保持登录状态。 - 新增了本地开发和测试流程,通过 `test_run.py` 和 `.env` 文件简化了调试。 - 更新了 `README.md` 文档,包含详细的 Docker 部署和本地开发指南。
14 lines
316 B
Python
14 lines
316 B
Python
import sys
|
|
import subprocess
|
|
from dotenv import load_dotenv
|
|
|
|
def main():
|
|
"""
|
|
加载 .env 文件并执行签到脚本
|
|
"""
|
|
load_dotenv()
|
|
print(".env 文件已加载,正在准备执行签到脚本...")
|
|
subprocess.run([sys.executable, "nodeseek_sign.py"])
|
|
|
|
if __name__ == "__main__":
|
|
main() |