Python client library for Screenshot API.
Project description
Overview
The client library for Screenshot API in Python language.
The minimum Python version is 3.6.
Installation
pip install screenshot-api
Examples
Full API documentation available here
Create a new client
from screenshotapi import *
client = Client('Your API key')
Capture screenshots
client.get(filename='screen.jpg',url='example.com')
Extras
cookies = {
'name1': 'value1',
'name2': 'value2'
}
# Pass cookies, emulate mobile device, disable JS, wait for network idle
# event, output API errors in XML, capture PDF screenshot in full page
# mode and get image data in base64.
response = client.get_raw(
url='example.com',
type=ImageFormat.PDF,
mode=Client.SLOW_MODE,
full_page=True,
mobile=True,
output_format=Client.XML_FORMAT,
image_output_format=Client.BASE64_FORMAT,
no_js=True,
cookies=cookies
)
Changelog
1.0.0 (2021-12-16)
First release
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
screenshot-api-1.0.0.tar.gz
(11.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file screenshot-api-1.0.0.tar.gz.
File metadata
- Download URL: screenshot-api-1.0.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf2066a48e25c5bdb1222b15434d782ff38c8c529b5a3130031833bed9468b9
|
|
| MD5 |
a668ded33069a3f27437734565d72599
|
|
| BLAKE2b-256 |
d9b44c6ed7785bbcbb1f30c9f58955edc0298c0722f08e01e64b11198fcec8c5
|
File details
Details for the file screenshot_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: screenshot_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d4d197c1c3a0f2b74b1a5d2ecd9d8cf06bc14b6f6965095f0769115d17b52b1
|
|
| MD5 |
0973049ff95a1dc2cac83982105b7bfb
|
|
| BLAKE2b-256 |
de6fd6c90841bf665fe9a26abb2215c5addb27090ff84161727cbbfa03262684
|