I have a bunch of files like this that I have to download. I already have a code that allowed me to download a bunch of pdfs in other websites using direct links but not here. This is the code:
def download(url, file_name):
get_response = requests.get(url,stream=True,verify=False)
with open(file_name, 'wb') as f:
for chunk in get_response.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
return file_name
If I use this on the link above I get an empty file. How can I download this embedded pdf from google drive?