Run
import pdfkit pdfkit.from_url('https://www.google.com/','sample.pdf')
Output