Douyin_TikTok_Download_API
Douyin_TikTok_Download_API copied to clipboard
Tiktok中的fetch_user_post 功能中,有时候能够获取数据,有时候不能获取到数据,但是状态是200
发生错误的平台?
TikTok
发生错误的端点?
https://www.tiktok.com/api/post/item_list/
提交的输入值?
secUid = 'MS4wLjABAAAAX9QD5_AkAYZ4WwefGF2cdE-p11prGCb-jY8QTBH8gctpm37fqYWE0qjp4OkzLP1c'
是否有再次尝试?
是,发生错误后1小时后错误依旧存在。
你有查看本项目的自述文件或接口文档吗?
有,并且很确定该问题是程序或者端口的改动导致的。
数据获取状态码为200,但是返回的数据为空
报错信息:
ERROR 无效响应类型。响应类型: <class 'NoneType'>
状态码是200,没有返回任何值是什么问题
有想过是延时问题,在get_fetch_data 上的self.aclient.get 加了timeout 还是存在问题
请尝试在config文件中修改cookie为你自己的cookie然后重启项目。
还是不行,现在我看的cookie中没有passport_csrf_token 这个参数。cookie的样式对比之前也是改了些
嗯嗯 你先研究一下吧 晚点我也去试试看看是否需要更新代码
嗯嗯 你先研究一下吧 晚点我也去试试看看是否需要更新代码
好嘞
If you use non-login cookie it will work, but logged in cookie will give above error. I tried and found error, or maybe login account is marked as spam so it is not returned. problem is in cookie only
If you use non-login cookie it will work, but logged in cookie will give above error. I tried and found error, or maybe login account is marked as spam so it is not returned. problem is in cookie only
Very interesting, but it's good to know, thanks for the information:)
I have added a new tag to this issue. After testing, if the logged-in cookie is used, the request frequency from TikTok will be limited. This situation does not happen in the visitor cookie state. The next step may be to implement a method to automatically generate visitor cookies, but I don’t know what limitations or other potential problems there are. If you have more information, please reply below. Thank you, I wish you a happy Thanksgiving, and God bless you!
douyin.fetch_user_post_videos除了需要自动生成访问者cookie,还需要把verifyFp和fp这两个参数也加上去,要不跑40分钟一样封控。