Python website screen grabber
Project description
flask-screenshot
A firefox selenium based screenshot package for use with flask
Error while running selenium in a flask route brought me to create this.
Although that I realised soon my error was elsewhere, I now have a condensed easy format to grab website screenshots
Prerequisites
- Ubuntu
- Firefox
sudo apt-get install firefox
- geckodriver
sudo apt-get install firefox-geckodriver
Features
- Grab screenshots from any website (in .png format)
- Choose browser size (essentially screenshot size)
Installation
Download and install can be done through PyPi
pip install pyshotty
or
git clone https://github.com/lewis-morris/pyshotty
cd pyshotty
pip install -e .
Pending Features
- Alternative image formats
- grab via Chrome selenium
- passing command line parameters
How to use
Minimal working example
from pyshotty import Firefox
screen = Firefox()
filename = screen.grab("www.google.com")
output: /tmp/tempscreenshot.png
wait for x seconds after ma
Contact
If you have any issues or just want to chat you can always email me at lewis.morris@gmail.com or open an issue.
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
pyshotty-0.0.3.4.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pyshotty-0.0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23dddd65dab208aa06199b1dfbd47693afea5c74cc0c1f88a615f6b4e9da2d2 |
|
MD5 | 22d52f15029ca8981eb80638306870ea |
|
BLAKE2b-256 | 2e7daec6bc93ce18e997aca859f3e8171b395b22d0ecc575c7da992eb73c0209 |