Metadata-Version: 2.1
Name: selenium-to-pdf
Version: 0.3.0
Summary: Given an HTML document, converts thereupon to a PDF using Selenium's DevTools.
Home-page: https://github.com/mkbabb/selenium-to-pdf
License: MIT
Keywords: selenium-to-pdf,html,pdf
Author: Mike Babb
Author-email: mike7400@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: selenium (>=4.9.1,<5.0.0)
Project-URL: Repository, https://github.com/mkbabb/selenium-to-pdf
Description-Content-Type: text/markdown

# 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](https://sites.google.com/a/chromium.org/chromedriver/getting-started).

## Example

```python
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)
```

