mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-12-18 08:10:17 +00:00
957f7ab45c
* Download page as PDF. * Contributor name. * Pudim page typo.
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'
|
|
```
|