Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiktok中的fetch_user_post 功能中,有时候能够获取数据,有时候不能获取到数据,但是状态是200 #504

Open
SwallowData opened this issue Nov 18, 2024 · 6 comments
Assignees
Labels
BUG Something isn't working

Comments

@SwallowData
Copy link

发生错误的平台?

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 还是存在问题

@SwallowData SwallowData added the BUG Something isn't working label Nov 18, 2024
@Evil0ctal
Copy link
Owner

请尝试在config文件中修改cookie为你自己的cookie然后重启项目。

@SwallowData
Copy link
Author

还是不行,现在我看的cookie中没有passport_csrf_token 这个参数。cookie的样式对比之前也是改了些

@Evil0ctal
Copy link
Owner

嗯嗯 你先研究一下吧 晚点我也去试试看看是否需要更新代码

@SwallowData
Copy link
Author

嗯嗯 你先研究一下吧 晚点我也去试试看看是否需要更新代码

好嘞

@nguyenduclongwin
Copy link

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

@Evil0ctal
Copy link
Owner

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:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants