Skip to main content

Get a snapshot from a website by using Pyppeteer.

Project description

PyppeSnap

TestRelease

screenshot

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


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)

Uploaded Source

Built Distribution

PyppeSnap-1.0.0-py3-none-any.whl (3.6 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