xhs icon indicating copy to clipboard operation
xhs copied to clipboard

playwright._impl._errors.Error: Execution context was destroyed, most likely because of a navigation

Open jqsl2012 opened this issue 1 year ago • 2 comments

升级到最新版本后,按照 https://reajason.github.io/xhs/basic 重新部署了一次,但一直报这个错误

playwright._impl._errors.Error: Execution context was destroyed, most likely because of a navigation
playwright._impl._errors.Error: TypeError: window._webmsxyw is not a function
    at eval (eval at evaluate (:226:30), <anonymous>:1:25)
    at UtilityScript.evaluate (<anonymous>:233:19)
    at UtilityScript.<anonymous> (<anonymous>:1:44)

jqsl2012 avatar Mar 08 '24 09:03 jqsl2012

这个可能是网络环境的问题导致部署的网页被验证码挡住了,只能尝试换个地方部署了

ReaJason avatar Mar 14 '24 09:03 ReaJason

@ReaJason 这个验证码可以被破解吗? 另外我按照 https://github.com/ReaJason/xhs/issues/83 尝试首次本机ip获取sign签名,之后每次创建1个新的client用不同的ip做代理,发现第一次可以正常爬取,之后新创建的client则报上面的错误,这是什么问题呢

jqsl2012 avatar Mar 25 '24 01:03 jqsl2012