Skip to main content

Take bookmarks.json, a URL list, or a single URL - convert those to screenshots

Project description

Picto

Take bookmarks.json, a URL list (newline delimited), or a single URL - convert those to screenshots.

Setup

python3 -mpip install picto
playwright install --with-deps chromium

CLI

Save a URL as an image - optionally embed a HAR archive of the site.

Usage:

$ picto [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • snapshot

snapshot

Usage:

$ picto snapshot [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • extract: Take a picto snapshot and extract embedded...
  • take: Take a snapshot of the provided URL -...

snapshot extract

Take a picto snapshot and extract embedded assets

Usage:

$ picto snapshot extract [OPTIONS]

Options:

  • --filepath FILE: The path to a picto snapshot [required]
  • --help: Show this message and exit.

snapshot take

Take a snapshot of the provided URL - optionally including a HAR file either as a standalone or embedded in the returned image as EXIF data.

Usage:

$ picto snapshot take [OPTIONS]

Options:

  • --filepath FILE: The path to a bookmarks.json file as exported from a browser or a newline delimited text file of URLs
  • --url TEXT: The URL of a website you wish to take a snapshot of
  • --out PATH: The output directory to store results in [default: /tmp/picto]
  • --include-har / --no-include-har: Capture and save a HAR file when taking the screenshot [default: no-include-har]
  • --include-pdf / --no-include-pdf: Capture and save a PDF file when taking the screenshot [default: no-include-pdf]
  • --embed-har / --no-embed-har: If true, enables include_har - save HAR in the screenshots EXIF data [default: no-embed-har]
  • --max-processes INTEGER: The number of processes to spawn which will consume the bookmarks.json entries in parallel [default: 5]
  • --timeout FLOAT: Wait at most this many seconds for a page to load [default: 15.0]
  • --no-progress / --no-no-progress: Disable progress bar and just print the filepaths [default: no-no-progress]
  • --help: Show this message and exit.

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

picto-0.1.2.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

picto-0.1.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file picto-0.1.2.tar.gz.

File metadata

  • Download URL: picto-0.1.2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for picto-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08ca6193978781ad1a346b4eb343bf4016b6626c3681d0e64df79bcf8d484b28
MD5 4161c7ab157164c4c304b4b84331e430
BLAKE2b-256 2862cc834d6bfde0337d2d12a0b7fa8b0fa767d57793cdbb70ce7c604615d769

See more details on using hashes here.

File details

Details for the file picto-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: picto-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for picto-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 707b020d6d07efc59969746d8770c6419308c34d0c8640f8b2f62720b7f62f41
MD5 2b5f88f1c3d679736f1536a9daaffa59
BLAKE2b-256 80b5f3f1c5e2863a9e60c34c5603eb0d18dcb59f3bd65cacfd018e6e485aab5c

See more details on using hashes here.

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