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
Metadata
Release files for screenshot-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| screenshot-api-1.0.0.tar.gz | 11.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| screenshot_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / screenshot-api-1.0.0.tar.gz
| Download URL | screenshot-api-1.0.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bf2066a48e25c5bdb1222b15434d782ff38c8c529b5a3130031833bed9468b9
|
|
BLAKE2b-256 checksum How to use checksums |
d9b44c6ed7785bbcbb1f30c9f58955edc0298c0722f08e01e64b11198fcec8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / screenshot_api-1.0.0-py3-none-any.whl
| Download URL | screenshot_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d4d197c1c3a0f2b74b1a5d2ecd9d8cf06bc14b6f6965095f0769115d17b52b1
|
|
BLAKE2b-256 checksum How to use checksums |
de6fd6c90841bf665fe9a26abb2215c5addb27090ff84161727cbbfa03262684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for screenshot-api 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.