Russell-Newton / TikTokPy

Extract data from TikTok without needing any login information or API keys.
https://pypi.org/project/tiktokapipy/
MIT License
197 stars 25 forks source link

first run error #4

Closed stolenvw closed 1 year ago

stolenvw commented 1 year ago

got this error on first run async_api.py:157: RuntimeWarning: coroutine 'BrowserContext.clear_cookies' was never awaited 2nd time it ran without error

Russell-Newton commented 1 year ago

Can you run pip freeze in your virtual environment so I can see what version of playwright you've got installed?

And the issue only occurred the first time you ran it? It hasn't happened again?

stolenvw commented 1 year ago

playwright==1.29.0

yeah just first run, have not seen it happen again yet

Russell-Newton commented 1 year ago

Fixed by #5. Playwright's documentation didn't indicate this as being a coroutine, but it looks like it is with the async version of Playwright's API.

Updating to v0.1.6 should fix this.