原脚本有些小问题,在此做如下更新修复:
1. 跳过cloudflare ddos check(selenium.webdriver更换成undetected_chromedriver)
2. 隐私模式启动(防止cf验证不显示,被识别成机器人)
3. 修改点击 Extend VPS不跳转的bug(替换成driver.get(url)的方式)
4. 替换WebDriverWait()为driver.find_element(),不然总抛异常TimeoutException
5. 系统换成windows-2022,指定python脚本version为3.9.5
USERNAME
PASSWORD
BARKKEY
- 原因:
因为github的Actions虚机托管在Azure上, 每次重新执行Actions的run workflow都会导致切换公网IP,有的IP被别人使用过(干啥就不知道了嘿嘿!),所以识别成了机器人,报出这个错。
- 解决方法:
多次重新执行run workflow,切换到好IP可以正常运行为止。
- https://www.python.org/
- https://www.selenium.dev/
- https://www.youtube.com/watch?v=As-_hfZUyIs
- https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md