Closed andrea-mar closed 2 months ago
Please post your IDE and OS... asyncio
does not work with all IDEs.
OS : windows IDE : VS code
Great. My advice is to try the code on a plain command line or Powershell and see if it makes any difference.
thank you so much for the prompt responses!
i tried running it in the command line . it still errors
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)
That is a different error. I suggest you check here: https://github.com/dfreelon/pyktok/issues/63
uninstall playwright
and then reinstall playwright version = 1.37
and playwright install
worked!
Thank you for your super prompt responses 🥇 !
i am trying to get metadata for a specific hashtag with
When the following runs:
I get:
RuntimeError: asyncio.run() cannot be called from a running event loop