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

[BUG] - cursor and count in user.videos not working #1183

Open
rkulyassa opened this issue Aug 12, 2024 · 0 comments
Open

[BUG] - cursor and count in user.videos not working #1183

rkulyassa opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rkulyassa
Copy link

The cursor and count parameters in user.videos() are not working. I've found passing a value for cursor does not change the return data at all (the default of 30 is always used), and passing a value for count results in no data at all being returned.

With user_example.py:

async def user_example():
    async with TikTokApi() as api:
        await api.create_sessions(ms_tokens=[ms_token], num_sessions=1, sleep_after=3, headless=False)
        async for video in api.user('therock').videos(count=1, cursor=1):
            print(video)

if __name__ == "__main__":
    asyncio.run(user_example())

Expected behavior

This should return just one video at an offset of 1, but it doesn't return anything.

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5
  • TikTokApi Version: 6.4.0

My workaround for now will be to just brute force through the loop until I get to the video I want.

@rkulyassa rkulyassa added the bug Something isn't working label Aug 12, 2024
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

1 participant