av-wpa (Web Page Analyzer)
A CLI utility for downloading web pages, downloading page resources, extracting structured data such as ld+json microdata and inline JavaScript variables for analyzis.
Features
- Downloading web page by url
- Extracting data: ld-json structured microdata, and JavaScript state objects, list of resources.
- Resource Downloading: Save page HTML and download associated web assets directly to a directory.
Installation
Option 1: Install via PyPI
Using standard pip:
pip install av-wpa
Using astral-uv:
uv add av-wpa
Option 2: From Source
git clone https://github.com/Avazart/av-wpa.git
cd wpa
uv sync
How to Run
Command Line Interface (CLI)
Run via installed entry point:
python -m av-wpa [OPTIONS] URL
Or run directly via python module:
python -m av_wpa [OPTIONS] URL
Or execute using uv without manual venv activation:
uv run -m av_wpa [OPTIONS] URL
Command Line Arguments & Options
Positional Arguments
url— Target web page URL to process (requared).
Options & Flags
-d,--directory PATH— Specify the download directory path for saving output files.-a,--analyze— Enable analysis mode for parsing and extracting page structured data.-r,--resources— Enable resource downloading to fetch page assets.-h,--help— Show help message and exit.
Execution Examples
1. Basic Analysis
Analyze a target web page:
python -m av-wpa https://example.com -a
2. Download Page Resources to a Specific Directory
Download web page resources into a designated folder:
python -m av-wpa https://example.com -r -d ./data
3. Analyze and Download Resources Together
python -m av-wpa https://example.com -a -r -d ./data
Metadata
Release files for av-wpa 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| av_wpa-0.2.3.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| av_wpa-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / av_wpa-0.2.3.tar.gz
| Download URL | av_wpa-0.2.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
951479a622731a95744fe37eb62a99d94801de61a7e38a0a79089c5226bed4d8
|
|
BLAKE2b-256 checksum How to use checksums |
cda7699aab7437bc4e58a78127546ee81e5c54ec2251792e41cdd6d8f320751b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.21
|
Release files / av_wpa-0.2.3-py3-none-any.whl
| Download URL | av_wpa-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45bb1af4da36cc6384235b39fd721b29869821bb630c4b42ad36502bca050e17
|
|
BLAKE2b-256 checksum How to use checksums |
09cfb53820a6192e906e0768c8ad3076e6b70f663bfd09ce1498eace0f028d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.21
|