Skip to main content

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.

  • CLI

You can try CLI mode for testing.

pyppesnap --url https://www.google.com --type img

And the output here.

------------- Parameters ---------------
URL: https://www.google.com
Type: img
--------------- Base64 ------------------
iVBORw0KGgoAAAANSUhEUgAABkAAAAOECAYAAAD
...
CCAAAAAAAkM7/B83ojRnTa7oSAAAAAElFTkSuQmCC
-------------------------------------

This tool can be used with web framworks to get a snapshot, check details in ./example.

Metadata

Release files for PyppeSnap 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyppeSnap 1.0.6
File Size Uploaded
PyppeSnap-1.0.6.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyppeSnap 1.0.6
File Interpreter ABI Platform
PyppeSnap-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / PyppeSnap-1.0.6.tar.gz

Download URL PyppeSnap-1.0.6.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2a214506f72c5a1e47eeec0535e46f64b05a9f9e755cd2a52273f4a26bbf04b0
BLAKE2b-256 checksum
How to use checksums
8796568a3ef609494095937cbfd0be3e6a38d1bfcbb68b4146b4070982e96510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / PyppeSnap-1.0.6-py3-none-any.whl

Download URL PyppeSnap-1.0.6-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f6b2482d41c5abea9da5805994e07ae1f052e950e73b89057fd3ef7622f0a4
BLAKE2b-256 checksum
How to use checksums
25cc46abfb96f33cbb1204e3d74f3ec1b97d652861ceebfd39557416aafbc247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page