<gh_stars>0
import requests
import json
f = open("../Week 2/carviewer2.html", "r")
html = f.read()
print (html)

apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150ad6d4f1c4'
url = 'https://api.html2pdf.app/v1/generate'

data = {'html': html,'apiKey': apiKey}
response = requests.post(url, json=data)
print (response.status_code)
newFile = open("lab06.02.01.htmlaspdf.pdf", "wb")
newFile.write(response.content)



import requests
import json
f = open("../Week 2/carviewer2.html", "r")
html = f.read()
print (html)

apiKey = '46ceed910c24ff7cce8240e89ec7b71912f6f40f2ec55fd217ce150ad6d4f1c4'
url = 'https://api.html2pdf.app/v1/generate'

data = {'html': html,'apiKey': apiKey}
response = requests.post(url, json=data)
print (response.status_code)
newFile = open("lab06.02.01.htmlaspdf.pdf", "wb")
newFile.write(response.content)