We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Setting sessions' headless to True when running api.sound.info() does not work.
Setting headless to False to make it visible to the browser works well
The buggy code
async with TikTokApi() as api: try: await api.create_sessions( ms_tokens=[ms_token], num_sessions=1, sleep_after=3, headless=True, ) sound_info = await api.sound(id=tiktok_code).info() return sound_info["musicInfo"]["stats"]["videoCount"] except Exception as e: print(f"Error fetching TikTok data: {e}") return 0
Preferably the smallest amount of code to reproduce the issue.
SET LOGGING LEVEL TO INFO BEFORE POSTING CODE OUTPUT
Error fetching TikTok data: None -> TikTok returned an empty response
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Setting sessions' headless to True when running api.sound.info() does not work.
Setting headless to False to make it visible to the browser works well
The buggy code
Preferably the smallest amount of code to reproduce the issue.
SET LOGGING LEVEL TO INFO BEFORE POSTING CODE OUTPUT
Error fetching TikTok data: None -> TikTok returned an empty response
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: