ClericPy / ichrome

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

Intercepting requests #132

Closed juanfrilla closed 1 year ago

juanfrilla commented 1 year ago

How can I intercept requests with ichrome? for example, in all the requests that the browser make, how can I get the url that contains "shoes/api2/yessir/"

ClericPy commented 1 year ago

try tab.iter_fetch https://clericpy.github.io/ichrome/reference/AsyncTab/#ichrome.async_utils.AsyncTab.iter_fetch