Skip to main content

selenium-to-pdf

Given an HTML document, converts thereupon to a PDF using Selenium's DevTools.

Requires selenium and ChromeDriver. For more information on how to install ChromeDriver, see here.

Example

from selenium_to_pdf import convert

url = "https://www.fulltextarchive.com/book/dante-s-inferno/#CANTO-1-2"

pdf_data = convert.html_to_pdf(url=url)

with open("dante.pdf", "wb") as f:
    f.write(pdf_data)

Metadata

Release files for selenium-to-pdf 0.3.0

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

Source distribution (sdist)

Source distribution for selenium-to-pdf 0.3.0
File Size Uploaded Provenance Actions
selenium_to_pdf-0.3.0.tar.gz 3.0 kB Without provenance Details for selenium_to_pdf-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for selenium-to-pdf 0.3.0
File Interpreter ABI Platform Actions
selenium_to_pdf-0.3.0-py3-none-any.whl Python 3 none any Details for selenium_to_pdf-0.3.0-py3-none-any.whl

Total release size: 6.3 kB

Release files / selenium_to_pdf-0.3.0.tar.gz

Download URL selenium_to_pdf-0.3.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ac49761e408ce210164972a4997591288d8038abaee803d7e28ad75dd504717d
BLAKE2b-256 checksum
How to use checksums
fe624265e49ba792f2920d3e001f397516b48b07feb50213f1411154ecf43e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0

Release files / selenium_to_pdf-0.3.0-py3-none-any.whl

Download URL selenium_to_pdf-0.3.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff27e78627326418ec0a173b6cd8bfbc2e4a68aa28e2a0ad578ebf4a16db355c
BLAKE2b-256 checksum
How to use checksums
761bdb8649d4381d86f8fda86658170d3cfee3c00afe80b929c4b458bab3a9a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0

Security for selenium-to-pdf 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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