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
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 av_wpa-0.1.8.tar.gz.
File metadata
- Download URL: av_wpa-0.1.8.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b679397dabdce04a4887226e5c493d7b607d340a33fe315713f5254afc2ee3c9
|
|
| MD5 |
c27fcca1a30db4c094f5009587c0069e
|
|
| BLAKE2b-256 |
a1cec3d80eb207fd5a547038129c31cfcdc457a63962d3530e5bef972804b5f1
|
File details
Details for the file av_wpa-0.1.8-py3-none-any.whl.
File metadata
- Download URL: av_wpa-0.1.8-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50833c15088e6bdedb13f90cac312d73abcd6cb7c70209292c1279b36b0ef3f0
|
|
| MD5 |
a835b9b693bfe9021d58a36ddf1477f8
|
|
| BLAKE2b-256 |
2245fbeab097144f30c358cc1dcdf604b47a563b5ab58cfb9aba45d295d5a2e1
|