Skip to main content

A CLI tool to take screenshots of HTML pages

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmljet-0.1.1.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

htmljet-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file htmljet-0.1.1.tar.gz.

File metadata

  • Download URL: htmljet-0.1.1.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for htmljet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e77715c72f094b2644ce345d36e9ab36f3966217073569cc5d70b2dae201deb
MD5 88f3f3dba5d49409e2c1872a6d263324
BLAKE2b-256 e206908a3257b69f3db4b7b8c2795906f8d526a20564a18ce51becdf4b7bef36

See more details on using hashes here.

File details

Details for the file htmljet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: htmljet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for htmljet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39819003b02f07c8f89736e4c75c64aa1d0e41b2aba55dcd9d671366782d4e1a
MD5 3df1d72e411108e607cc3d999677d5d1
BLAKE2b-256 265d24b62840d7143f4f0d68ea2084b81303f435f0f6ac250d4fef18ffd98ca0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page