question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - Retrieve Tiktok on specific date or range

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
davidteathercommented, Nov 7, 2020

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.

0reactions
Goldrestcommented, Nov 6, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

【2022】6 Ways on How to Recover Deleted TikTok Videos
In this guide, you are given various methods to recover your deleted TikTok video based on your needs. Using video recovery software, you...
Read more >
Tik tok glitch is removing link in bio costing business owners ...
I've updated the app. it didn't fix the problem. drop a comment so you can check back cause I'm gonna be updating you...
Read more >
Edit Ad Settings - Business Help Center
Spent tons of time creating a campaign but then realized you need to make a change ... Then, find the specific campaign, ad...
Read more >
TikTok Law Enforcement Guidelines
TikTok username: When requesting data regarding a specific user of the ... Date range: The request must specify a date (and, if possible, ......
Read more >
TikTok Not Working? 7 Ways to Troubleshoot - Business Insider
At this stage, it might be time to ask a friend if TikTok is working for them. Alternatively, you can try going to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found