HTMLJet
HTMLJet is a powerful command-line tool for capturing screenshots of HTML elements on web pages. It provides advanced features for analyzing HTML structure, taking screenshots at different levels, and cleaning up similar images.
Features
- 📸 Capture screenshots of HTML elements on web pages
- 🔍 Analyze HTML structure to determine the most likely component level
- 🌐 Support for capturing screenshots at all levels of the HTML structure
- 🧹 Clean up similar images to reduce redundancy
- 🎭 User-friendly command-line interface with rich output
Installation
To install HTMLJet, you need Python 3.7 or higher. You can install it using pip:
pip install htmljet
Usage
HTMLJet provides two main commands: snap and cleanup.
Snap Command
The snap command captures screenshots of HTML elements on a webpage.
htmljet snap <URL> [OPTIONS]
Options:
--output-dir: Directory to save screenshots (default: "htmljet")--all-levels: Capture screenshots for all levels
Example:
htmljet snap https://example.com --output-dir my_screenshots
Cleanup Command
The cleanup command cleans up similar images in a directory, keeping the larger ones.
htmljet cleanup <DIRECTORY> [OPTIONS]
Options:
--similarity-threshold: Threshold for considering images as similar (0.0 to 1.0, default: 0.9)
Example:
htmljet cleanup my_screenshots --similarity-threshold 0.8
Development
TBA
Release files for htmljet 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| htmljet-0.1.1.tar.gz | 59.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| htmljet-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.2 kB
Release files / htmljet-0.1.1.tar.gz
| Download URL | htmljet-0.1.1.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e77715c72f094b2644ce345d36e9ab36f3966217073569cc5d70b2dae201deb
|
|
BLAKE2b-256 checksum How to use checksums |
e206908a3257b69f3db4b7b8c2795906f8d526a20564a18ce51becdf4b7bef36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.18
|
Release files / htmljet-0.1.1-py3-none-any.whl
| Download URL | htmljet-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39819003b02f07c8f89736e4c75c64aa1d0e41b2aba55dcd9d671366782d4e1a
|
|
BLAKE2b-256 checksum How to use checksums |
265d24b62840d7143f4f0d68ea2084b81303f435f0f6ac250d4fef18ffd98ca0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.18
|