import time
import pdfkit
# wk_path ='/usr/bin/wkhtmltopdf'
config = pdfkit.configuration(wkhtmltopdf='/usr/bin/wkhtmltopdf')
# url = 'https://lbjheiheihei.xyz/2019/05/07/Spoof-QRcode.html'
url = 'https://www.liaoxuefeng.com/'
name ='test2.pdf'
time1 = time.time()
pdfkit.from_url(url,name,configuration=config)
time2 = time.time()
print(str(time2-time1)+"s")