Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1 KB

File metadata and controls

48 lines (31 loc) · 1 KB

Screenshotbase Python Client

screenshotbase Python Client is the official Python wrapper around the Screenshotbase API.

Installation

Install from pip (after release):

pip install screenshotbase

Install from code:

pip install git+https://github.com/everapihq/screenshotbase-python.git

Usage

All Screenshotbase API requests are made using the Screenshotbase class. This class must be initialized with your API access key string. Where is my API access key?

In your Python application, import screenshotbase and pass authentication information to initialize it:

from screenshotbase import Screenshotbase
client = Screenshotbase("API_KEY")

Retrieve Status

print(client.status())

Take a Screenshot

See docs at https://screenshotbase.com.

img = client.take("https://bbc.com", format="png", full_page=True)
with open("screenshot.png", "wb") as f:
    f.write(img)

Contact us

Any feedback? Please feel free to contact our team.