Skip to main content

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("www.google.com")
filename = screen.run()

Image

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyshotty-0.0.3.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page