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