google-drive-downloader
google-drive-downloader copied to clipboard
Not working for large files with scan virus error
I cant download files with size greater than 20 mb. It throws 0.0 B Done.
Hi @hlarrainq ,
From what I see the file size limit for Google Drive to run the virus scan is much higher than 20MB. From trial and error, I would say it's somewhere above 100MB.
For example, this is a dummy 50MB file that you can download. I just verified that this works.
from googledrivedownloader import download_file_from_google_drive
download_file_from_google_drive('1F0YBsnQRvrMbK0p9UlnyLu88kqQ0j_F6', 'data/file-50MB.dat')
How big is the file that you are trying to download?
Hi @ndrplz , thanks for your fast response!
Im trying to download a 26mb file. Here is the id: 1wEZ81eTtOQLGXBoGqGATWqWkxNM8F-x6 It appears that Google randomly throws the virus scan alert for files between 20 to 100 mb, but always on bigger sizes. Maybe if is a zip with a lot of files inside, it has more chances to get the alert.
I fixed this problem using @m-santh approach of this PR, #32
The only downside is that it needs BeautifulSoup library.
This should work now from what I can see.