selenium-wire - PyPI
https://pypi.org/project/selenium-wire23.10.2021 · Selenium Wire extends Selenium’s Python bindings to give you access to the underlying requests made by the browser. You author your code in the same way as you do with Selenium, but you get extra APIs for inspecting requests and responses and making changes to them on the fly.