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.
-
Install the Package: You can install
zimo-web-screenshotdirectly from PyPI using pip:pip install zimo-web-screenshot
-
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.pngsuffix. (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
Release history Release notifications | RSS feed
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 zimo-web-screenshot-0.4.1.tar.gz.
File metadata
- Download URL: zimo-web-screenshot-0.4.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6633138776023c35087d3c7573ace92fce77329abb589797a3ada58f09a261a
|
|
| MD5 |
98c701341a55e5267c1e074454dc627a
|
|
| BLAKE2b-256 |
ba4175f73597018d50bda1e4210cd303b90d419d63d2b26de5826ffd5bae9ce7
|
File details
Details for the file zimo_web_screenshot-0.4.1-py3-none-any.whl.
File metadata
- Download URL: zimo_web_screenshot-0.4.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4df989dda438170b1c9e51cdecb71ae71de5d1bd9acdba69af74b4b347ed980
|
|
| MD5 |
6948f9adabfbacf33b6e41738e5d2c84
|
|
| BLAKE2b-256 |
2bb7177199813b93f045feebf8c1f4c985ac1d786e41506f3701c147cc0386e1
|