吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7486|回复: 93
上一主题 下一主题
收起左侧

[Python 原创] 【微信运动刷步】基于zepp life的刷步数【2.0版本】【成功率100%】

  [复制链接]
跳转到指定楼层
楼主
南国有佳人 发表于 2025-10-24 14:48 回帖奖励
看论坛很多刷步子都失效了,要么是407,要么是token失效,我决定自己整个比较权威,没有bug的,废话不多说,直接上图




上代码:
[Python] 纯文本查看 复制代码
from http.client import responses
import requests
import logging
import time
import json
import random
from datetime import datetime

# 设置日志
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s: %(message)s')

# ===== 配置区域 =====
# Push Plus推送配置
PUSH_PLUS_TOKEN = ""  # 你的Push Plus Token

# 微信步数账号配置 - 可以添加多个账号
ACCOUNTS = [
    
    {
        "username": "xxxx@qq.com",  # 手机号
        "password": "a123456789",  # 密码
    }
]

# 步数配置
MIN_STEPS = 44444  # 最小步数
MAX_STEPS = 66666  # 最大步数
SPECIFIED_STEPS = None  # 指定步数(如果为None则使用随机步数)


# ===== 配置结束 =====

def push_plus_push(token, title, content):
    """Push Plus推送函数"""
    if not token:
        logging.info("未配置Push Plus Token,跳过推送")
        return False

    url = "http://www.pushplus.plus/send"
    data = {
        "token": token,
        "title": title,
        "content": content,
        "template": "txt"
    }

    try:
        response = requests.post(url, json=data, timeout=10)
        if response.status_code == 200:
            result = response.json()
            if result.get("code") == 200:
                logging.info("Push Plus推送成功")
                return True
            else:
                logging.error(f"Push Plus推送失败: {result.get('msg')}")
                return False
        else:
            logging.error(f"Push Plus推送失败,状态码: {response.status_code}")
            return False
    except Exception as e:
        logging.error(f"Push Plus推送异常: {e}")
        return False


def submit_wechat_steps(username, password, steps=None):
    """提交微信步数函数"""
    # 设置请求头,模拟浏览器
    headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
                          'AppleWebKit/537.36 (KHTML, like Gecko) '
                          'Chrome/140.0.7339.128 Safari/537.36',
            'Accept': 'application/json, text/javascript, */*; q=0.01'
        }
    # 如果未指定步数,则生成随机值
    if steps is None:
        steps = random.randint(MIN_STEPS, MAX_STEPS)
    url = f"http://stjxyp.dpdns.org/index.php?user={username}&pwd={password}&step={steps}&token=8879725"
    # 表单数据
    data = {
        'user': username,
        'pass': password,
        'count': steps
    }

    try:
        # 发送 POST 请求
        response = requests.get(url, headers=headers, timeout=30)
        logging.info(f"这是微信步数提交结果111:{response.status_code}")
        logging.info(f"这是微信步数提交结果222:{response}")
        logging.info(f"这是微信步数提交结果333:{response.json()}")
        # 检查响应状态
        if response.status_code == 200:
            result = response.json()
            if result.get('status') == "success":
                return True, f"微信步数提交成功! 步数: {steps}", steps
            else:
                return False, f"微信步数提交失败: {result.get('data', '未知错误')}", steps
        else:
            return False, f"服务器返回错误状态码: {response.status_code}", steps

    except Exception as e:
        return False, f"请求异常: {str(e)}", steps


def daily_task():
    """
    每日任务流程:提交微信步数并发送通知
    """
    logging.info("开始执行每日任务")

    # 检查账户配置
    if not ACCOUNTS:
        logging.error("未配置账户信息,请在脚本中修改ACCOUNTS列表")
        return False

    # 工作日问候语
    weekday_dict = {
        0: "周一",
        1: "周二",
        2: "周三",
        3: "周四",
        4: "周五",
        5: "周六",
        6: "周日"
    }
    weekday = datetime.now().weekday()
    greeting = f"{weekday_dict.get(weekday, '工作日')}愉快!"

    # 处理所有账户
    results = []
    success_count = 0

    for i, account in enumerate(ACCOUNTS, 1):
        username = account["username"]
        password = account["password"]

        logging.info(f"正在处理第 {i} 个账户: {username}")

        # 提交微信步数
        success, step_message, step_count = submit_wechat_steps(
            username,
            password,
            SPECIFIED_STEPS
        )

        result = {
            "username": username,
            "success": success,
            "message": step_message,
            "steps": step_count
        }
        results.append(result)

        if success:
            success_count += 1

        logging.info(f"账户 {username} 处理结果: {step_message}")

        # 多个账户之间添加延迟
        if i < len(ACCOUNTS):
            delay = random.randint(5, 15)
            logging.info(f"等待 {delay} 秒后处理下一个账户...")
            time.sleep(delay)

    # 构造推送内容
    current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
    title = f"微信步数提交报告 - {current_time}"

    # 根据星期决定表情符号
    emoji = "&#128522;" if weekday < 5 else "&#128526;"

    content = f"{greeting}{emoji}\n"
    content += f"执行时间: {current_time}\n"
    content += f"处理账户数: {len(ACCOUNTS)}\n"
    content += f"成功数量: {success_count}\n"
    content += f"失败数量: {len(ACCOUNTS) - success_count}\n"
    content += "=" * 30 + "\n"

    for result in results:
        status_icon = "&#9989;" if result["success"] else "&#10060;"
        content += f"{status_icon} {result['username']}: {result['message']}\n"

    # 发送Push Plus推送
    if PUSH_PLUS_TOKEN:
        logging.info("正在发送Push Plus推送通知...")
        push_result = push_plus_push(PUSH_PLUS_TOKEN, title, content)
        if push_result:
            logging.info("推送发送成功")
        else:
            logging.error("推送发送失败")
    else:
        logging.info("未配置PUSH_PLUS_TOKEN,跳过推送")
        # 如果没有配置推送,则在控制台输出结果
        print("\n" + "=" * 50)
        print(content)

    logging.info(f"每日任务完成! 成功: {success_count}/{len(ACCOUNTS)}")
    return success_count > 0

def handler(*args):
    daily_task()

if __name__ == "__main__":
    # 直接执行任务
    daily_task()


免费评分

参与人数 12吾爱币 +17 热心值 +11 收起 理由
Msir0214 + 1 + 1 我很赞同!
YongQI233 + 1 我很赞同!
liqualife001 + 1 + 1 我很赞同!
文西思密达 + 2 + 1 我很赞同!
dingfish + 1 + 1 谢谢@Thanks!
方非凡 + 1 + 1 我很赞同!
琉璃末 + 1 鼓励转贴优秀软件安全工具和文档!
SSSHJH + 1 谢谢@Thanks!
gsacker + 1 + 1 谢谢@Thanks!
hrh123 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
ghost1999 + 1 + 1 明天试试,感谢分享!
wuloveyou + 1 + 1 厉害厉害,必须点赞!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

推荐
 楼主| 南国有佳人 发表于 2025-12-12 13:52 |楼主
julybao 发表于 2025-12-12 09:13
可以网页操作吗?

yundong.91zhangxiansheng.cn网页刷
推荐
 楼主| 南国有佳人 发表于 2025-10-28 09:33 |楼主
SSSHJH 发表于 2025-10-24 20:32
感谢,不过这种用别人接口的感觉活不了多久

又自己写了一版本,这下可以活得久了,哈哈哈,看我另外一个帖子
沙发
thewindshadow 发表于 2025-10-24 18:50
3#
zhangcool2008 发表于 2025-10-24 19:00
老哥,邮箱是否可行。
4#
小雨网络 发表于 2025-10-24 19:07
点了手机账号和密码但是提交了显示失败1成功0
5#
kuyzar 发表于 2025-10-24 19:13
试一试!!!!!
6#
zjl3480 发表于 2025-10-24 19:39

不错接口能用
7#
1634091415 发表于 2025-10-24 20:09
实测失败
8#
SSSHJH 发表于 2025-10-24 20:32
感谢,不过这种用别人接口的感觉活不了多久
9#
acpe 发表于 2025-10-24 21:04
微信步数提交失败: 未知错误
10#
风经过 发表于 2025-10-24 21:58
没有成功,
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-8-21 03:30

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表