Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0x4f53/webscreenshotter
A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
https://github.com/0x4f53/webscreenshotter
python selenium selenium-python
Last synced: about 1 month ago
JSON representation
A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
- Host: GitHub
- URL: https://github.com/0x4f53/webscreenshotter
- Owner: 0x4f53
- License: gpl-3.0
- Created: 2023-12-17T17:12:56.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-13T10:04:37.000Z (about 1 year ago)
- Last Synced: 2024-12-02T21:47:36.188Z (about 2 months ago)
- Topics: python, selenium, selenium-python
- Language: Python
- Homepage: https://pypi.org/project/webscreenshotter/
- Size: 135 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webscreenshotter
A Python utility that takes a stitched screenshot of a webpage along with individual ones, at any resolution
### Usage
1. Install the package first
```
pip install webscreenshotter
```2. Use the function in your code
```
from webscreenshotter import take_screenshotif __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.
3. Inspect the location you set as output directory for screenshot(s)
Notes:
1. Stitching happens vertically.
2. Setting different resolutions can result in different style webpages, especially with PWAs and mobile-optimized webpages.# Demo
Visit https://github.com/0x4f53/webqrscan/ to see a quick demo on how this package can be used to scan QR codes on a page without actually making GET requests to get images.# License
[GPLv3 License](https://github.com/0x4f53/webscreenshotter/blob/master/LICENSE)By 0x4f (Owais Shaikh)
https://pypi.org/project/webscreenshotter/
https://github.com/0x4f53/webscreenshotter