8000 GitHub - cndaqiang/autosign_selenium
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cndaqiang/autosign_selenium

Repository files navigation

autosign_selenium

一个基于 Selenium 的自动化签到脚本,用于在网页上进行每日签到/兑换奖励。

功能简介

  • 在 Edge 浏览器中模拟登录、访问签到页面。
  • 根据按钮自动点击指定奖励。
  • 自动保存签到结果截图。
  • 通过配置文件管理 WebDriver 路径和浏览器数据目录。
  • 支持:
    • 有头模式(带GUI,可手动登录调试)
    • 无头模式(自动化运行,完全后台执行)

使用方法

  1. 安装 Microsoft Edge WebDriver,版本要和你本地 Edge 浏览器版本一致。

  2. 安装 Python 和依赖:

   pip install selenium pyyaml
  1. 准备 Edge WebDriver 并下载与系统 Edge 浏览器版本一致的 msedgedriver.exe

  2. 创建配置文件:

    • config_example.yml 复制为 config.yml
    • 根据你本机环境修改其中的 driver_pathuser_data_dir
  3. 运行脚本:

    • 自动化无头运行:

      python www.ablesci.com.py
      
    • 带GUI调试(需要手动登录以保存cookies):

      python www.ablesci.com.py --gui
      
  4. 查看 sign_result.png 截图文件以确认签到结果。

项目结构

├── tool_xxx.py             相关工具
├── check_timestamp.py      用于确定脚本的执行间隔
├── www.ablesci.com.py      www.ablesci.com签到
├── config_example.yml      示例配置文件
├── .gitignore              忽略 config.yml 和中间产物
└── README.md               项目说明文件

在服务器上使用

  • 在有GUI的电脑上python .\tool_build_cooikes.py生成网站的cooikes
  • 在其他服务器上python .\tool_build_cooikes.py导入cooikes
  • 执行相关的脚本或者自动化任务python www.ablesci.com.py

作者声明: 本项目脚本和README由 OpenAI 的 ChatGPT 辅助编写,并经过个人调试优化。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0