ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
228 stars 29 forks source link

How can I make a sync version of get_a_tab()? #51

Closed Champollion9012 closed 3 years ago

Champollion9012 commented 3 years ago

How can I make a sync version of get_a_tab()?

ClericPy commented 3 years ago

ichrome.sync_utils has been obsoleted, but you can create a new thead and run async code in there. sync code needs to use the threads for concurrency but threads could not be kill while running.

https://github.com/microsoft/playwright-python this lib has both sync and async modes