A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
Project description
webscreenshotter
A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
Usage
- Install the package first
pip install webscreenshotter
- Use the function in your code
from webscreenshotter import take_screenshot
if __name__ == "__main__":
take_screenshot (
"https://en.wikipedia.org/wiki/qr_code",
width=1280, height=720,
directory=".screencaps", file_suffix="capture_",
stitch=True
)
Change the directory and suffix to whatever you want.
- Inspect the location you set as output directory for screenshot
Notes:
- Stitching happens vertically.
- Setting different resolutions can result in different style webpages, especially with PWAs and mobile-optimized webpages.
License
By 0x4f (Owais Shaikh)
https://pypi.org/project/webscreenshotter/ https://github.com/0x4f53/webscreenshotter
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
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 webscreenshotter-0.1.3.tar.gz.
File metadata
- Download URL: webscreenshotter-0.1.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dce530c797c552ed9d491373a8c642251783f104148ebeddaf65860507ceaee
|
|
| MD5 |
7ca22e0c456e4da96ee927462314104c
|
|
| BLAKE2b-256 |
f1a226b995ac0ba164c519ad3c21fd662d47812961d90a009ed54f809fa68d46
|
File details
Details for the file webscreenshotter-0.1.3-py3-none-any.whl.
File metadata
- Download URL: webscreenshotter-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44950d8e3983f65c25dea82ad2d926e4c665cde4a3673c4762c0890327e40c66
|
|
| MD5 |
e18091c0613d1144fe3fa2afef1973de
|
|
| BLAKE2b-256 |
78b6b5e5916955a4ee7bcbec0eb78ffe1a2860fbc389fc6933ead45e06b45a5b
|