BSD Ports

www/py-selenium-wire 5.1.0_1 DragonFly

Access to the underlying Selenium requests

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
python, www
Package size
412.4 KiB, 2874.3 KiB installed

Description

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.

Simnple example:

from seleniumwire import webdriver # Import from seleniumwire

# Create a new instance of the Chrome driver driver = webdriver.Chrome()

# Go to the Google home page driver.get('https://www.google.com')

# Access requests via the `requests` attribute for request in driver.requests: if request.response: print( request.url, request.response.status_code, request.response.headers['Content-Type'] )

In the other systems

SystemPortVersion
DragonFlywww/py-selenium-wire5.1.0_1
FreeBSDwww/py-selenium-wire5.1.0_2
HardenedBSDwww/py-selenium-wire5.1.0_2
GhostBSDwww/py-selenium-wire5.1.0_2

Install

Binary package:

pkg install py311-selenium-wire

From DPorts:

cd /usr/dports/www/py-selenium-wire && make install clean

Dependencies

Run dependencies 14

No port depends on this one.