0

I am trying to convert Website (including css and image)into pdf and save it locally. I have been trying to use a couple of python libraries like(pdfkit, wkhtmltopdf, weasyprinrt, selenium.) I tried and found this code but don't know how to use it to achieve my goal and save the file locally.

import pdfkit
pdfkit.from_url('http://google.com', 'res.pdf')
Shad
  • 1
  • 5

0 Answers0