Get a snapshot from a website by using Pyppeteer.
Project description
PyppeSnap
This is a tool for getting snapshot with base64 encoding from a website.
As the first DEMO image you see, just need one URL input to function.
Installation
pip install pyppesnap
Usage
Common use with code below.
from pyppesnap import get_snapshot_by_url
if __name__ == '__main__':
url = 'https://www.google.com'
print(get_snapshot_by_url(url))
You need to give a valid URL like start with
http
, or Pyppeteer cannot navigate it.
It can be used with web framworks to get a snapshot, check it in ./example
.
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
PyppeSnap-1.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for PyppeSnap-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6909d307d25a6092adf19398173115ba30e0523508041d54d530ecd9814e5e |
|
MD5 | bdeb59e25391a8ddc6ea51cde6abab9c |
|
BLAKE2b-256 | 0689aae09e00883069eeb5baae86368f72c6472f78b640ec1398fb7112ace230 |