ShAw7ock
ShAw7ock
使用`response.iter_lines()`的访问方式来读取清华智谱ChatGLM API返回的流式信息如下: User the method of `response.iter_lines()` to deal with the Server-Sent Event (SSE) response from Zhipu ChatGLM as follows: ```python with client.stream("POST", url, headers=headers, json=data) as response: for line...
如题,登陆并获取`cookie`(只填写了必要项:a1, webId, web_session)后运行`basic_usage.py`,代码运行会一直卡在`context_page = browser_context.new_page()`这一行 单拎出来测试`playwright`好像也会遇到这个问题。 报错信息(一直卡住之后,直接中断程序)如下: ```shell 2024-07-23 11:06:41.239784 ^CTraceback (most recent call last): File "/home/work/admin/xiaohongshu/xhs_test.py", line 53, in note = xhs_client.get_note_by_id("659bd450000000001a000826") File "/home/work/.conda/envs/xiaohongshu/lib/python3.10/site-packages/xhs/core.py", line 201, in get_note_by_id res...