基于 WebKit 的 Windows 自动化浏览器框架
Project description
AutoWK
AutoWK is a Windows-only Python automation wrapper for a bundled WebKit-based
browser runtime. It exposes a small WebDriver-style Python API and ships the
required MiniBrowser.exe and WebDriver.exe binaries inside the package.
Install
pip install autowk==0.4.3
AutoWK currently targets 64-bit Windows. The wheel includes native Windows executables and DLLs, so it is not intended for Linux or macOS.
Quick Start
from autowk import AutoWK
client = AutoWK(lang="en-US", timezone="America/Chicago")
try:
client.create_session()
client.navigate("https://example.com/")
print(client.get_title())
finally:
try:
client.delete_session()
finally:
client.close()
The legacy import paths remain supported:
from autowk.AutoWkDriverClient import AutoWK
from autowk.AutoWKOptions import Options
Diagnostics
AutoWK 0.4.3 adds a lightweight command line interface:
python -m autowk
autowk --version
autowk doctor
autowk paths
autowk doctor checks that the bundled browser binaries exist and that the
default local ports are available. It does not launch the browser.
Safety Notes
close()only terminates processes started by the currentAutoWKinstance.- Network listener output is redacted by default to avoid printing credentials.
- Proxy credentials are still passed to the bundled browser as startup arguments because that is the current MiniBrowser interface. Avoid using shared machines or process-list logging when passing proxy passwords.
License
AutoWK's Python code is distributed under the BSD 2-Clause License. The package
also bundles WebKit runtime files, supporting DLLs, and WebInspector
third-party resources under their respective upstream licenses. See NOTICE,
THIRD_PARTY_NOTICES.md, and the bundled license files for details before
redistributing the wheel.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autowk-0.4.3.tar.gz.
File metadata
- Download URL: autowk-0.4.3.tar.gz
- Upload date:
- Size: 72.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b1446c1774e95f7c44e4a050a1de447124368d8a0078846a0ee65898e11dd4
|
|
| MD5 |
bdd844a36dfca1b539edef2f80011f83
|
|
| BLAKE2b-256 |
9e8f001483520883516ae448575eb17b490e8815b27f9298757f0e90b3613a92
|
File details
Details for the file autowk-0.4.3-py3-none-win_amd64.whl.
File metadata
- Download URL: autowk-0.4.3-py3-none-win_amd64.whl
- Upload date:
- Size: 74.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f9d1c0f6d8c4ad3a04bd34c0575460ce686cb32f75f94557fbad9c2784401f
|
|
| MD5 |
14179201351c995bf2c71ffc5338a25e
|
|
| BLAKE2b-256 |
4107bd3bfa602915d23b2e41965e1cda70a470fc24d5765ab4c8055630eadb3f
|