Metadata-Version: 2.1
Name: pyshotty
Version: 0.0.3.3
Summary: Python website screen grabber
Home-page: https://github.com/lewis-morris/pyshotty
Author: Lewis Morris
Author-email: lewism@codeus.co.uk
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown

# 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

```python
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

```python

from pyshotty import Firefox

screen = Firefox()
filename = screen.grab()

```

![Image](examples/tempscreenshot.png)


## 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.


