Skip to main content

Get a snapshot from a website by using Pyppeteer.

Project description

PyppeSnap

TestRelease

image

pdf

This is a tool for getting snapshot with base64 encoding from a website.

As DEMO image you see, just need one URL input to function.

This package support image and pdf with encoded base64.

Installation

pip install pyppesnap

Check it on Pypi.

Usage

Common use with code below.

  • Get image
from pyppesnap import get_image_snapshot_by_url
url = 'https://www.google.com'
print(get_image_snapshot_by_url(url))
  • Get PDF
from pyppesnap import get_pdf_snapshot_by_url
url = 'https://www.google.com'
print(get_pdf_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 details 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.5.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

PyppeSnap-1.0.5-py3-none-any.whl (3.9 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