mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-24 12:31:08 +00:00
25 lines
449 B
Markdown
25 lines
449 B
Markdown
|
# Download Page as PDF:
|
||
|
|
||
|
Download a page as a PDF .
|
||
|
|
||
|
#### Required Modules :
|
||
|
- pyppdf
|
||
|
```bash
|
||
|
pip3 install pyppdf
|
||
|
```
|
||
|
- pyppyteer
|
||
|
```bash
|
||
|
pip3 install pyppeteer
|
||
|
```
|
||
|
|
||
|
#### Examples of use :
|
||
|
- Download a page:
|
||
|
```bash
|
||
|
python download-page-as-pdf.py -l 'www.pudim.com.br'
|
||
|
```
|
||
|
|
||
|
- Download a page and give a pdf name:
|
||
|
```bash
|
||
|
python download-page-as-pdf.py -l 'http://www.pudim.com.br' -n 'pudim.pdf'
|
||
|
```
|