GithubHelp home page GithubHelp logo

pan-rui / woiden_extend-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zakkoree/woiden_extend

1.0 0.0 0.0 10.14 MB

woiden.id and hax.co.id auto extend

License: MIT License

Python 97.93% Dockerfile 2.07%

woiden_extend-1's Introduction

Woiden And Hax Auto Extend 💯

woiden.id 和 hax.co.id 自动续订

activity 徽章显示最后执行成功的日期,脚本是否稳定运行,GithubUTC 时区会有时差,一天误差属于正常

Note Github Action 运行时所在的服务器IP可能被 Google ban 无法使用语音验证,因为公共的服务器被别人用过,IP被识别为机器人,可能上个人刚好也调用了 Google reCaptcha ,所以 Google reCaptcha 的语音验证调用能否成功随缘,使用 2CaptchaYesCaptcha 的图片验证不受此影响稳如老狗,甚至加载不出来图片也可以验证通过,建议语音图片两个同时使用即稳定也不费钱,或者托管自己服务器,登陆时脚本是先执行语音验证,验证失败再执行图片验证,语音验证频繁调用会被ben ( 没几次就会被ben,不用担心应该就ben一两个小时左右 ),自己服务器使用语音验证最好时间间隔久点

参数

可选参数 默认 woiden.id

HOST: woiden.id 或 hax.co.id

必要参数 用户

USERNAME: Telegram ID
PASSWORD: 密码

可选参数 Telegram 推送参数 ( 都有服务器了会没有电报吗 )

TELE_ID: Telegram ID
TELE_TOKEN: 机器人Token

可选参数 图片和V3验证支持 2Captcha

TWOCAPTCHA_TOKEN: 你的Token

可选参数 语音验证支持 腾讯 百度 IBM 讯飞,任选一个

  • 腾讯
    • ASR_CHOICE: TENCENT
    • SECRET_ID: 腾讯语音API的SECRET_ID
    • SECRET_KEY: 腾讯语音API的SECRET_KEY
  • 百度
    • ASR_CHOICE: BAIDU
    • APP_ID: 百度语音API的APP_ID
    • API_KEY: 百度语音API的API_KEY
    • SECRET_KEY: 百度语音API的SECRET_KEY
  • IBM
    • ASR_CHOICE: IBM
    • APP_ID: IBM API的IDkey
    • IBM_URL: IBM API的URL
  • 讯飞 ( 🚫不能使用 详细⤵ )
    • ASR_CHOICE: XFYUN
    • APP_ID: 讯飞语音API的APP_ID
    • API_KEY: 讯飞语音API的API_KEY
    • SECRET_KEY: 讯飞语音API的SECRET_KEY

例如:

docker run \
-e HOST=woiden.id \ # 选择平台
-e USERNAME=123456 -e PASSWORD=123456 \ # 用户
-e TELE_ID=123456 -e TELE_TOKEN=123456\ # Telegram 推送
-e TWOCAPTCHA_TOKEN=123456 \ # 图片和V3验证
-e ASR_CHOICE=BAIDU -e APP_ID=123456 -e API_KEY=123456 -e SECRET_KEY=123456 \ # 语音验证
-it --rm  ghcr.io/zakkoree/woinden_extend:latest

Warning 至少有一项语音或者图片参数,建议语音图片两个同时使用

使用

  • Github Action
    • 1.初次使用需要修改 renewTime 文件内日期,修改为你现在日期前六天内,之后会自动更新,不能是今日日期,不然今天不会执行脚本
    • 2.将 参数⤴ 添加到Secret 参考➡
    • 3.执行 续订 任务 参考➡,默认手动+cron, 0 0,8,16 * * * 每天 0/8/16 点执行,你可以修改 /.github/workflows/renew.yml 第 6 行来调整频率,每天只要成功续订一次后面任务就会跳过避免浪费解码平台额度
  • Github Action With 自己服务器
    托管自己服务器到 Github Action 中 参考➡
  • 自己服务器 + Crontab
    把 Python Scrip 或 Docker 运行命令添加到 crontab 里面
  • Python Script
    pip3 install --no-cache-dir -r requirements.txt
    HOST="woiden.id" USERNAME="xxx" PASSWORD="xxx" [可选参数...]
    python3 main.py
  • Docker
    docker run -e HOST=woiden.id -e USERNAME=xxx -e PASSWORD=xxx [可选参数...] \
    -it --rm  ghcr.io/zakkoree/woinden_extend:latest
GitHub Actions 计划任务语法

计划任务语法有 5 个字段,中间用空格分隔,每个字段代表一个时间单位。

┌───────────── 分钟 (0 - 59)
│ ┌───────────── 小时 (0 - 23)
│ │ ┌───────────── 日 (1 - 31)
│ │ │ ┌───────────── 月 (1 - 12 或 JAN-DEC)
│ │ │ │ ┌───────────── 星期 (0 - 6 或 SUN-SAT)
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
* * * * *

每个时间字段的含义:

符号 描述 举例
* 任意值 * * * * * 每天每小时每分钟
, 值分隔符 1,3,4,7 * * * * 每小时的 1 3 4 7 分钟
- 范围 1-6 * * * * 每小时的 1-6 分钟
/ */15 * * * * 每隔 15 分钟

:由于 GitHub Actions 的限制,如果设置为 * * * * * 实际的执行频率为每 5 分执行一次。


集成

语音识别

  • Tencent 每月 10 小时免费音频
  • BaiDu 新用户 30000 次一年期限免费音频
  • IBM 每月 500 分钟免费音频,但准确度不够,注册需外币卡
    • 分享一个来自 wx5ecc8c432b706 的密钥和URl
    • IDkey:nblnZuv5E5A_wo5j9eYC-nQVWHKyY5HxJXuEPnNpJgrr
    • URL:https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/7e2f69e7-a5e8-4d56-91ae-f4dc7b4a1f0b
  • Xfyun 每月 500 次免费音频流,注意是语音听写API,语音转写额度太少
    • 🚫 Github Action 去除讯飞语音支持,偶尔能用简直莫名其妙,可能服务器环境不同导致,和 Docker 一样原因
    • Docker Build 镜像不含讯飞,因为加讯飞构建会导致各种依赖冲突和系统依赖包
    • Python Script 我本地使用是可以,直接运行需要安装 xfyunAPI.py 的依赖项 和打开 main.py 22行402~406行 的注释
  • Aliyun 新用户三个月免费音频
  • Azure 每月 5 小时免费音频,每小时音频 $1.543,注册需外币卡
  • Google 国内要挂代理访问,需付费,注册需外币卡

图片识别 V3评分

  • 2Captcha 1000次/1$,价格比下面便宜,并且识码还可以赚钱
  • Yes Captcha 66次/1¥,新用户免费1500次

woiden_extend-1's People

Contributors

zakkoree avatar pan-rui avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.