gpt4 book ai didi

phantomjs - 无法加载 url,然后无法发送登录参数

转载 作者:行者123 更新时间:2023-12-04 01:26:46 24 4
gpt4 key购买 nike

我正在尝试在 tumblr 中自动登录,运行建议的脚本 here但 phantomjs 只显示失败的尝试:

[info] [phantom] Starting...
[info] [phantom] Running suite: 3 steps
[debug] [phantom] opening url: https://tumblr.com/login, HTTP GET
[debug] [phantom] Navigation requested: url=https://tumblr.com/login, type=Other,willNavigate=true, isMainFrame=true
[warning] [phantom] Loading resource failed with status=fail: https://tumblr.com/login
[debug] [phantom] Successfully injected Casper client-side utilities
[debug] [phantom] Logging in
[info] [remote] attempting to fetch form element from selector: '#signup_form'
[info] [phantom] Step anonymous 2/3: done in 2899ms.
[info] [phantom] Step _step 3/3: done in 2912ms.
[warning] [phantom] Casper.waitFor() timeout
[error] [phantom] Wait timeout of 100000ms expired, exiting.
Wait timeout of 100000ms expired, exiting.

我增加了原始超时脚本没有成功,我的工作站使用:
- Windows 7 64 位
- Casperjs 1.1.0
- Phantomjs 1.9.1

谢谢。

最佳答案

我终于找到了解决这个问题的方法。
Tumblr 为其站点使用 TLSv1.2 加密,而 PhantomJS 默认为 SSLv3。

要解决此问题,您可以使用以下任一方法调用 CasperJS:

casperjs tumblr.js --ssl-protocol=tlsv1

或者
casperjs tumblr.js --ssl-protocol=any

关于phantomjs - 无法加载 url,然后无法发送登录参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18776290/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com