[BUG] - Retrieve Tiktok on specific date or range
See original GitHub issueDescribe the bug
I have tried to retrieve tiktok between a time range (one month) when using minCursor and maxCursor
The buggy code
tiktoks = api.trending(count = 2, minCursor=1580511600, maxCursor=1583017199)
for tiktok in tiktoks:
print(tiktok["createTime"])
Expected behavior
1580511600 corresponds to ‘01-1-2020 00:00:00’ timestamp 1583017199 corresponds to ‘31-1-2020 23:59:59’ timestamp
Documentation says :
:param minCursor: time stamp for the earliest TikTok to retrieve
:param maxCursor: time stamp for the latest TikTok to retrieve
So i expected to have Tiktok’s [‘createtime’] between them. Unfortunatly trending, byHashtag or others methodes seems to not use minCursor/maxCursor anymore. I see in others issues that yu’ve mentionned that point but i’m not sure.
Error Trace
print from the code below
1597097470
1603220442
Desktop (please complete the following information):
- OS: [ Windows 10]
- TikTokApi Version [3.6.0] - if out of date upgrade before posting an issue
Additional context
I think that the documentation is out of the date. Do you know a way to retrieve video between a range of dates or a specific one ?
Thank you for you help !
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
TikTok won’t index by IDs you could create a function to filter out TikToks that don’t have a createTime value between the returned list though.
Again thank you for your reactivity !
It’s more clear now.
Not even a start date for retrieve ? Such a shame, that can be really useful. I’ve seen that Tiktok’s ID is composed of the posting date (like presents here https://dfir.blog/tinkering-with-tiktok-timestamps/) but i dont know if it can be useful.