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.0
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.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| av_wpa-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / av_wpa-0.2.0.tar.gz
| Download URL | av_wpa-0.2.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1409d983209c8d93c066ab85e3f6bf354561fb0beb50f9d329346bf39f4ba5f9
|
|
BLAKE2b-256 checksum How to use checksums |
24f9ec9235308824d0f95744ceb01ff33d1a31e77d4ff15c92103c61f48f8e70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.21
|
Release files / av_wpa-0.2.0-py3-none-any.whl
| Download URL | av_wpa-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9e7f49e013083023e1d2cb6ba111dff5d1817d8ab4ce3b0cc733be6643ba656
|
|
BLAKE2b-256 checksum How to use checksums |
b97927922f938295d36a883edebd12ac745765e0f09c8bacbf2e7ce4290f5736
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.21
|