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
File details
Details for the file chrome-printtopdf-0.0.1.tar.gz
.
File metadata
- Download URL: chrome-printtopdf-0.0.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3c87afa7952d9d5749b8a30d26f167bac1702b9b228cedb98f7349af74a8d3c |
|
MD5 | c12c33693f7867d46d25f4b88a6ff887 |
|
BLAKE2b-256 | 6c0b8cb623e11d8fe3f48b6b41c18cadb0fe2a23d5526bda1f9814e44472c781 |
File details
Details for the file chrome_printtopdf-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: chrome_printtopdf-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2423a586ce51f5f5b62b21846389f5c906150374450fc958b36bb0ac303da381 |
|
MD5 | 1e4ac7e99ef5aefe91e15bec689c8b41 |
|
BLAKE2b-256 | acefe1cf001f19eaaa194bddecc8411dff6970fef342458840eb4d75e0098fed |