diff --git a/Scripts/py/EUserv_extend.py b/Scripts/py/EUserv_extend.py index 43bce9d..33ea6d7 100644 --- a/Scripts/py/EUserv_extend.py +++ b/Scripts/py/EUserv_extend.py @@ -1,10 +1,20 @@ # -*- coding: utf8 -*- -import os -import re -import json -import time -import requests +import os,re,json,time,requests from bs4 import BeautifulSoup +''' +Author: cokemine +Modifier: o0oo0ooo0 & Oreo +Date: Tue Aug 10 08:24:30 UTC 2021 +建议cron: 0 10 */7 * * python3 EUserv_extend.py +------------ +环境变量说明 +EUserv_ID: 账号 用户名,邮箱也可,多账号用空格分隔,ql 环境变量填写需用回车隔开 +EUserv_PW: 密码 密码,同上且与账号一一对应 +推送变量看下方注释 +------------ +依赖模块说明 +pip install requests beautifulsoup4 / pip3 install requests beautifulsoup4 +''' # 强烈建议部署在非大陆区域,例如HK、SG等 # 常量命名使用全部大写的方式,可以使用下划线。 @@ -249,4 +259,4 @@ def main_handler(event, context): if __name__ == '__main__': # 方便我本地调试 - main_handler(None, None) + main_handler(None, None) \ No newline at end of file diff --git a/Scripts/py/mimotion.py b/Scripts/py/mimotion.py index 8e61fb4..469689c 100644 --- a/Scripts/py/mimotion.py +++ b/Scripts/py/mimotion.py @@ -1,5 +1,27 @@ +#!/usr/bin/env python3 # -*- coding: utf8 -*- # python >=3.8 +''' +Author: Squaregentleman +Modifier: Oreo +Date: Tue Aug 10 08:24:30 UTC 2021 +建议cron: 30 19 * * * python3 mimotion.py +------------ +环境变量说明 +MI_USER: 账号 仅支持手机号,多账号用 # 分隔 +MI_PWD: 密码 多账号用 # 分隔,且与账号一一对应 +STEP: 步数 空则为 18000-25000 之间随机,自定义示例: 18763 或 19000-24000 +PMODE: 推送模式 || PKEY: 具体推送格式填写(不带 [ ],请用具体的值代替) +wx [Server 酱: skey] +nwx [新 Server 酱: skey] +tg [TG: tg_bot_token@user_id] +qwx [企业微信: touser-corpid-corpsecret-agentid 其中 touser 可填 @all,agenid 不填默认为 1000002] +pp [PushPlus: push_plus_token] +off [关闭推送] +------------ +依赖模块说明 +pip install pytz / pip3 install pytz +''' from datetime import datetime import pytz