Git Product home page Git Product logo

euserv_extend's Introduction

EUserv_extend

使用 腾讯云函数 SCF 自动续期 EUserv 免费 IPv6 VPS 脚本

说明

自动获取账号内所有的VPS项目,并检测是否需要续期,需要续期会自动续期。

使用说明

1、修改 main.py 中的用户名,密码

USERNAME: 你的 EUserv 账户邮箱或 Customer ID

USERNAME = '[email protected]'
USERNAME = '[email protected] [email protected]' # 多个账号写法

PASSWORD: 账户的密码

PASSWORD = 'password'
PASSWORD = 'password1 password2' # 多个账号写法

2、配置 TrueCaptcha 验证码接口

默认使用 TrueCaptcha 官方 Demo API。每个 APIKEY 每天有 100 次免费额度,建议自行注册以确保稳定性。

TRUECAPTCHA_USERID = 'arun56'
TRUECAPTCHA_APIKEY = 'wMjXmBIcHcdYqO2RrsVN'

检查 API 使用次数,一般为 True,保持默认即可

TRUECAPTCHA_CHECK_USAGE = True

3、配置合适的推送方式(Server酱酷推PushPlusTelegram Bot Pushwecomchan

Server酱
 
SCKEY = 'SCU64664Tfb2052dc10382535c3dd19e48ba000fc5dacd6a5dc3f6'
  
酷推
 
COOLPUSH_SKEY = ''
# 通知类型 CoolPush_MODE的可选项有(默认send):send[QQ私聊]、group[QQ群聊]、wx[个微]、ww[企微]
COOLPUSH_MODE = 'send'
PushPlus
 
PUSHPLUS_TOKEN = ''
Telegram Bot Push
 
TG_BOT_TOKEN = '' # 通过 @BotFather 申请获得,示例:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw
TG_USER_ID = '' # 用户、群组或频道 ID,示例:129xxx206
TG_API_HOST = 'api.telegram.org' # 自建 API 反代地址,供网络环境无法访问时使用,网络正常则保持默认
wecomchan 具体可参考 https://github.com/easychen/wecomchan/tree/main/go-scf
 
WECOMCHAN_DOMAIN = ''  # 你的服务器的主页 例: https://example.com/
WECOMCHAN_SEND_KEY = ''  # 你配置的key
WECOMCHAN_TO_USER = '@all'  # 默认全部推送, 对个别人推送可用 User1|User2

4、新建层 BeautifulSoupBeautifulSoup.zip 导入 ,添加运行环境 Python 3.6。

5、新建腾讯云函数 EUserv_extend ,运行环境选择 Python 3.6,创建方式选择 空白函数,内存选择 64M,执行超时时间建议为 300 s(网站在国外访问比较慢,建议部署在非大陆区域,例如HK、SG等),将修改后的 main.py 粘贴进去。

6、在 EUserv_extend ⇨ 函数管理 ⇨ 层管理 里绑定层 BeautifulSoup

7、测试,没有错误就在 EUserv_extend ⇨ 触发管理 ⇨ 创建触发器触发周期 ⇨ 自定义触发周期 填入

0 0 8 */7 * * * # 每 7 天的 8 点执行,修改成你想要的时间。Cron 相关文档: https://cloud.tencent.com/document/product/583/9708

8、完成。

其他说明

本项目直接修改自 CokeMine/EUserv_extendZetaoYang/main.py 以适用于腾讯云函数。

euserv_extend's People

Contributors

if1y avatar o0oo0ooo0 avatar xmjwit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

euserv_extend's Issues

调用失败

我全部都照教程弄的,上传了层的zip,把main.py修改并粘贴到函数编辑区,环境都是python3.6,也绑定了层,但测试了就是调用失败,也没推送,这是怎么回事?

报错:unable to import bs4

{
"resource": "/usr/……/src/index.py",
"owner": "python",
"code": "import-error",
"severity": 8,
"message": "Unable to import 'bs4'",
"source": "pylint",
"startLineNumber": 5,
"startColumn": 1,
"endLineNumber": 5,
"endColumn": 1
}

报错报函数入口出错

请问函数入口是什么
默认的是index.main_handler

顺带问下阿里云能用么 貌似方法是一样的

德鸡又改续订方式了

德鸡更改了新的续订方式,会发送邮件验证码,手动填写PIN,我试了好几次脚本都是 renew error.
image
image

登入失败

我的账号密码明明是正确的,在官网也可以直接登入,但用这个就登入失败,不知道什么原因

云函数部署新的代码测试提示登陆失败,请大佬看下,谢谢。

START RequestId:4c164263-ff1c-427b-913e-d8828ef60500


正在续费第 1 个账号

Starting new HTTPS connection (1): support.euserv.com:443

https://support.euserv.com:443 "GET /index.iphp HTTP/1.1" 302 3220

https://support.euserv.com:443 "GET /index.iphp?sess_id=26b73ee82fe17ff3b40574805879518610132301351626159590 HTTP/1.1" 200 3220

https://support.euserv.com:443 "GET /pic/logo_small.png HTTP/1.1" 200 78

Starting new HTTPS connection (1): support.euserv.com:443

/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

InsecureRequestWarning)

https://support.euserv.com:443 "POST /index.iphp HTTP/1.1" 302 20

/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

InsecureRequestWarning)

https://support.euserv.com:443 "GET /index.iphp HTTP/1.1" 302 3217

/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

InsecureRequestWarning)

https://support.euserv.com:443 "GET /index.iphp?sess_id=11e1d2e919a5101f14dbd57a3c2d7647129226172871626159593 HTTP/1.1" 200 3217

第 1 个账号登陆失败,请检查登录信息

提问必读

如果脚本无法登录请先登录euserv看看是不是要确认信息了,确认后重新运行脚本
提问前必须更新最新版本!!!
反馈出错问题必须发报错截图, 不然close

登入失败

有点bug,有得账号回登入失败,看有人修复了,但是不知道怎么用云函数执行

续费失败

START RequestId:4facdf08-7508-40e8-851b-d7d9c26f7eac


正在续费第 1 个账号

Starting new HTTPS connection (1): support.euserv.com:443

https://support.euserv.com:443 "GET /index.iphp HTTP/1.1" 302 3390

https://support.euserv.com:443 "GET /index.iphp?sess_id=5a3c3ef7670fa57cf26fea5e4c91220f1241561331651641095761 HTTP/1.1" 200 3390

https://support.euserv.com:443 "GET /pic/logo_small.png HTTP/1.1" 200 78

https://support.euserv.com:443 "POST /index.iphp HTTP/1.1" 200 3713

[Captcha Solver] 进行验证码识别...

https://support.euserv.com:443 "GET /securimage_show.php HTTP/1.1" 200 6882

Starting new HTTPS connection (1): api.apitruecaptcha.org:443

https://api.apitruecaptcha.org:443 "POST /one/gettext HTTP/1.1" 200 111

ERROR RequestId:4facdf08-7508-40e8-851b-d7d9c26f7eac Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File "/var/user/index.py", line 345, in main_handler\n sessid, s = login(user_list[i], passwd_list[i])\n File "/var/user/index.py", line 94, in login\n captcha_code = handle_captcha_solved_result(solved_result)\n File "/var/user/index.py", line 225, in handle_captcha_solved_result\n if "RESULT IS" in solved_text:\nTypeError: argument of type 'int' is not iterable","statusCode":430}

END RequestId:4facdf08-7508-40e8-851b-d7d9c26f7eac

Report RequestId:4facdf08-7508-40e8-851b-d7d9c26f7eac Duration:6739ms Memory:64MB MemUsage:20.203125MB

账号登陆失败

账号登陆失败,请检查登录信息
日志记录如下
image
个人尝试过在官网登录,可以正常登录
酷推机器人推送记录如下
image
还请大佬帮忙看看解决解决T-T

功能建议

希望增加server酱等推送结果功能。

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.