ReaJason / xhs

基于小红书 Web 端进行的请求封装。https://reajason.github.io/xhs/
MIT License
1.03k stars 295 forks source link

获取sign时,page.goto("https://www.xiaohongshu.com") 后小红书出现滑块验证,怎么处理 #40

Closed chenxiaolou closed 1 year ago

NanmiCoder commented 1 year ago

是使用 example/basic_usage.py 中出现的吗? 如果是的话,可以提前在goto前加一个webId的cookie,像这样:https://github.com/ReaJason/xhs/blob/883392f290c992fd71f304d693e53f798e0253f0/example/basic_sign_server.py#L20-L22