Get PDFs from URLs using chrome
Project description
# Chrome-PrintToPDF
Latest Chrome Browser supports getting PDFs for websites.
## Install
Requires Python 3.5+
pip install chrome-printtopdf
## Usage
```python
from chrome_printtopdf import get_pdf_with_chrome_sync
pdf_file = get_pdf_with_chrome_sync('http://example.org',
chrome_binary='/path/to/chrome-bin')
with open('example.org.pdf', 'wb') as f:
f.write(pdf_file.read())
```
Latest Chrome Browser supports getting PDFs for websites.
## Install
Requires Python 3.5+
pip install chrome-printtopdf
## Usage
```python
from chrome_printtopdf import get_pdf_with_chrome_sync
pdf_file = get_pdf_with_chrome_sync('http://example.org',
chrome_binary='/path/to/chrome-bin')
with open('example.org.pdf', 'wb') as f:
f.write(pdf_file.read())
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chrome_printtopdf-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2423a586ce51f5f5b62b21846389f5c906150374450fc958b36bb0ac303da381 |
|
MD5 | 1e4ac7e99ef5aefe91e15bec689c8b41 |
|
BLAKE2b-256 | acefe1cf001f19eaaa194bddecc8411dff6970fef342458840eb4d75e0098fed |