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

broken save_tiktok_multi_page() #63

Closed
PERRETJonatan opened this issue Sep 5, 2024 · 3 comments
Closed

broken save_tiktok_multi_page() #63

PERRETJonatan opened this issue Sep 5, 2024 · 3 comments

Comments

@PERRETJonatan
Copy link

I tried to use the save_tiktok_multi_page() function but i get a

AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 514, in wrap_api_call
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.evaluate: ReferenceError: opts is not defined
    at Navigator.get [as userAgent] (<anonymous>:11:42)
    at eval (eval at evaluate (:234:30), <anonymous>:1:17)
    at UtilityScript.evaluate (<anonymous>:241:19)
    at UtilityScript.<anonymous> (<anonymous>:1:44)

Is it a problem with my version of python or the package, idk. Any help ?

@dfreelon
Copy link
Owner

dfreelon commented Sep 5, 2024

The traceback shows that your issue is with one of pyktok's dependencies, playwright. I suggest you try this user's solution: #61

@dfreelon
Copy link
Owner

dfreelon commented Sep 5, 2024

More advice here, in case that doesn't work: davidteather/TikTok-Api#1172

@PERRETJonatan
Copy link
Author

downgrading playwright to 1.37.0 fixed it, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants