import weasyprint, time time.sleep(300) weasyprint.HTML('https://cv.gregandev.fr').write_pdf('out.pdf')