How to see API call of websites in Chrome using Python? Alternatively, for a slightly more conversational to

22 Replies, 1946 Views

Check out selenium-wire! It’s an extension of Selenium that lets you capture requests easily.

```python
from seleniumwire import webdriver

driver = webdriver.Chrome()
driver.get('https://example.com')

for request in driver.requests:
if request.response:
print(request.url, request.response.status_code)
```
Super simple and effective.

Messages In This Thread



Users browsing this thread: 1 Guest(s)