py-selenium-wireAccess to the underlying Selenium requests
5.1.0_2wwwΣ=0 5.1.0_2Version of this port present on the latest quarterly branch.
BROKEN: imports blinker._saferef, removed in blinker 1.8 DEPRECATED: Vendored mitmproxy needs blinker._saferef and pyOpenSSL X509Extension, both removed; upstream archived IGNORE: is marked as broken: imports blinker._saferef, removed in blinker 1.8
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']
)
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-selenium-wire listed in the above command, you can pick from the names under the Packages section.
www/py-selenium-wire: Deprecate
The vendored mitmproxy imports blinker._saferef, which blinker 1.8
removed, so seleniumwire.webdriver no longer imports. Its certs.py
also uses pyOpenSSL crypto.X509Extension/X509Req, which pyOpenSSL 26.4
no longer has, so the TLS interception core would need porting to
cryptography. Upstream is archived; 5.1.0 (2022) is the last release.
PR: 299851
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
www/py-selenium-wire: New port - extends Selenium
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.