[QUESTION] 如何不使用配置文件来配置代理? #201
Labels
已确认(confirmed)
该issue已被处理,将在下次推送中更新(The issue has been processed and will be updated in the next push)
提问(question)
想得到更多的详细支持(Further information is requested)
问题描述
我在kwargs里面设置了代理,但是函数运行的时候似乎在gen_real_msToken()时并没有使用kwargs里面的代理,而是使用了配置文件里面的代理。
File "/Users/cyh/.virtualenvs/feeyo/lib/python3.9/site-packages/f2/apps/tiktok/utils.py", line 1081, in DeviceIdManager "Cookie": f"msToken={TokenManager.gen_real_msToken()}", File "/Users/cyh/.virtualenvs/feeyo/lib/python3.9/site-packages/f2/apps/tiktok/utils.py", line 176, in gen_real_msToken raise APITimeoutError( f2.exceptions.api_exceptions.APITimeoutError: 请求端点超时。链接:https://mssdk-sg.tiktok.com/web/common?msToken=QnC7zMMh1cpaDTxHDHnabNOrqaWv49JwA1IAq3AIFvrdaqQi8Rs_YlXSya1vN-4b6C1MgpWpS2cL1oakaUEDe3pUDMLpCbdSc3b3V98Fux0AuwXn_9Ns3FyMTnFRmSOOOVeGg6bVXMSGoMG6dq3k,代理:{'http://': None, 'https://': None},异常类名:TokenManager,异常详细信息:timed out
期望的支持
能否让我只在一个地方设置代理就可以获取到数据?
The text was updated successfully, but these errors were encountered: