Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

FengLi666/sports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

跑步是不可能跑步的

高校体育app自动跑步

仅供交流学习使用,not for evil use :)

使用了百度地图api自动寻路(虽然可能很绕 已经挺像真人跑的喽 :) )

image image

使用方法

本地直接运行运行微信机器人 两种方法, 微信机器人 只建议有服务器的同学使用

本地直接运行

windows

  1. 下载 /dist/run.exe, 运行,输入账号密码即可完成一次锻炼(为了避免封号, 完全模拟了跑步流程,耗时较长,未完成前不要关闭)

linux/macos

git clone https://github.com/FengLi666/sports.git
cd sports
pip3 install -r requirement.txt
export PYTHONPATH='.'
python3 ./mysports/run.py

输入账号密码 默认情况下跑步数据在一段时间后才会提交给app服务器(即你要保持这个进程一直运行) 如果想立即提交跑步数据 可以使用如下命令

python3 ./mysports/run.py --debug True

运行微信机器人

git clone https://github.com/FengLi666/sports.git
cd sports
pip3 install -r requirement.txt
export PYTHONPATH='.'
python3 ./wechat_bot/wechat_bot.py

具体见代码


感谢 @RyuBAI