mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-12-18 16:20:17 +00:00
b8626f28f5
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
6 lines
211 B
Python
6 lines
211 B
Python
import pdfkit
|
|
url = input('Enter the URL of the HTML: ')
|
|
pdf = input('Enter name of output pdf file without extension :')
|
|
pdfkit.from_url(url, pdf + '.pdf')
|
|
print("Done, The HTML url has been converted to PDF")
|