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 run this tool, you'll need Python and Selenium. Here are the steps to set it up:
- Clone the repository:
git clone https://github.com/zimoluo/zimo-web-screenshot-tool.git cd zimo-web-screenshot-tool
- Install dependencies:
You will need Python and pip installed. Then, you can install Selenium:
pip install selenium
- Web Driver: You need to have at least one recognizable 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:
python screenshot.py --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:blog)-d,--delay: Delay in seconds before taking the screenshot (default:0)-f,--filename: Output filename without the.pngsuffix (default:webpage_screenshot)
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.1.0.tar.gz.
File metadata
- Download URL: zimo-web-screenshot-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42641e3ddf0156fc9f51654e853e2b06a3bfb779b7b37b7c5e9b0d02b76ba25c
|
|
| MD5 |
2e0672b2ca48970dafb84209b71f0a49
|
|
| BLAKE2b-256 |
63f00561d6b9fc60a0028e7a9109aad82e22f7546c0897dc04dfecbbcded9f31
|
File details
Details for the file zimo_web_screenshot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zimo_web_screenshot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 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 |
95a46ee03b8732410300bdab36a1cd5ffa7d0b9fdd7581b16299c2deb0d16d34
|
|
| MD5 |
859a2d33da938359b4808602622869fa
|
|
| BLAKE2b-256 |
563ae3db27c254d37ba2d67e83997be5b1544ff46ccc10b767718398ddd9e4c1
|