Skip to main content

A simple CLI tool to take screenshots of Zimo Web pages with Selenium.

Project description

Zimo Web Screenshot Tool

This command-line tool allows users to take screenshots of Zimo Web pages with customized settings such as window dimensions, theme, and delays. It works as a handy script for me who need to take standardized screenshots for various purposes.

Features

  • Set browser window dimensions.
  • Apply custom themes.
  • Configure delays for screenshots to wait for dynamic content to load.
  • Save screenshots locally in PNG format.

Installation

To use this tool, you'll need Python installed on your system. The tool also requires Selenium, which will be automatically installed when you install the package from PyPI.

  1. Install the Package: You can install zimo-web-screenshot directly from PyPI using pip:

    pip install zimo-web-screenshot
    
  2. Install a Web Driver: You need to have at least one recognizable Chrome web driver installed on your device. This is typically bundled within a Chrome browser.

Usage

To use the tool, navigate to the project directory and run the script with the required options. Example below:

zimo-web-screenshot --width 1600 --height 900 --theme plainDark --pathname about --delay 0

Command Line Arguments

  • -w, --width: Width of the browser window. (default: 1600)
  • -H, --height: Height of the browser window. (default: 900)
  • -t, --theme: Theme name to apply. (default: pixelland)
  • -p, --pathname: Pathname of the URL. (default: design)
  • -d, --delay: Delay in seconds before taking the screenshot. (default: 0)
  • -f, --filename: Output filename without the .png suffix. (default: webpage_screenshot)
  • -q, --quality: The quality of the output file. (default: 1.5)
  • -sy, --scrollY: Vertical scroll offset. (default: 0)
  • -c, --custom: Path to the custom theme JSON config data file. This argument overrides -t. (default: does not exist)

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

zimo_web_screenshot-0.4.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zimo_web_screenshot-0.4.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file zimo_web_screenshot-0.4.2.tar.gz.

File metadata

  • Download URL: zimo_web_screenshot-0.4.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.1

File hashes

Hashes for zimo_web_screenshot-0.4.2.tar.gz
Algorithm Hash digest
SHA256 92de63319c7a6eed823541d8f7e91c9007e76ecb4a8ef40aa25f4fc72508d842
MD5 034e6187c3aef1efcf261d07c414e4ac
BLAKE2b-256 b6914469c4d5ffc943669d82147c8307c06e368290a5e516b59abfdb9f9c444f

See more details on using hashes here.

File details

Details for the file zimo_web_screenshot-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for zimo_web_screenshot-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26038874bbd14ce14382be585b6bcc9887e19f118d3b8d5a83cfb7d9a9c8d691
MD5 a7942459561909f69b8a39b3e49f459e
BLAKE2b-256 d10bcd437a7a400361eabc4f3ee7e1f478dad606a541b121e548d73cd40fadb4

See more details on using hashes here.

Supported by

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