10. downloading a PDF file using Python and url lib

PHOTO EMBED

Sat Aug 20 2022 20:02:26 GMT+0000 (Coordinated Universal Time)

Saved by @mwebrania #python

import urllib.request

url = 'https://pdf_file_path/filename.pdf'

urllib.request.urlretrieve(url, 'filename.pdf')
content_copyCOPY