https://github.com/mandarvaze/url2pdf
Try multiple options like pyppeteer, playwright and browerless.io
https://github.com/mandarvaze/url2pdf
browserless playwright-python pyppeteer
Last synced: 2 months ago
JSON representation
Try multiple options like pyppeteer, playwright and browerless.io
- Host: GitHub
- URL: https://github.com/mandarvaze/url2pdf
- Owner: mandarvaze
- Created: 2021-04-23T05:00:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T13:01:15.000Z (about 4 years ago)
- Last Synced: 2025-02-16T09:28:01.725Z (4 months ago)
- Topics: browserless, playwright-python, pyppeteer
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
- Install `poetry` from [here](https://python-poetry.org/docs/#installation)
- `poetry install` (Will install dependencies from the poetry.lock file)# Basic usage
```shell
$ poetry run python playwright_pdf.py --url "https://en.wikipedia.org/wiki/Deep_Impact_(spacecraft)" --out play-wikipedia.pdf`
playwright: Took 0.1422239999999999 seconds$ poetry run python browserless_pdf.py --url "https://en.wikipedia.org/wiki/Deep_Impact_(spacecraft)" --out browserless-wikipedia.pdf
browerless: Took 0.04257199999999983 seconds$ poetry run python pyppeteer_pdf.py --url "https://en.wikipedia.org/wiki/Deep_Impact_(spacecraft)" --out pyp-wikipedia.pdf
pyppeteer: Took 0.31097300000000017 seconds
```