1import urllib.request
2pdf_path = ""
3def download_file(download_url, filename):
4 response = urllib.request.urlopen(download_url)
5 file = open(filename + ".pdf", 'wb')
6 file.write(response.read())
7 file.close()
8
9download_file(pdf_path, "Test")