Closed ttygde closed 2 years ago
TimeoutError means your Chrome debugging mode is not ready (or the connection is bad). You should launch the chrome daemon with python3 -m ichrome
at first.
It loads bing.com but cannot find any element on it. Chrome daemon is running.
Ensure http://127.0.0.1:9222
is available. The Exception is Timeout so it may be raised by a bad connection.
sync
mode is deprecated, I try your code but it all works(I changed self.br to browser ).
thanks, problem was on my side
Finally I decided to switch to async version. It is such a gem. Thanks for this wonderful project!
Finally I decided to switch to async version. It is such a gem. Thanks for this wonderful project!
Thanks for your Thanks
!
If you really don't like asyncio, you may try the playwright
from https://github.com/microsoft/playwright-python
ichrome
is only a personal product, I used it on my daily jobs at work but only fixed the bugs of async
mode.
But playwright and pyppeteer are developped by official organizations, the playwright
support both sync and async mode. The only reason I quit them is they were too late or too confused for me.
Playwright is too heavy and popular thus more easily detectable by sites. ichrome is low-profile, simple and nice, exactly what I was looking for.
Alright... I thought they are the same usage of Chrome CDP yet. Sometimes I just want to write a pure Websocket connection manager for CDP...