google-drive-downloader icon indicating copy to clipboard operation
google-drive-downloader copied to clipboard

Not working for large files with scan virus error

Open hlarrainq opened this issue 10 months ago • 3 comments

I cant download files with size greater than 20 mb. It throws 0.0 B Done.

hlarrainq avatar Jan 12 '25 02:01 hlarrainq

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?

ndrplz avatar Jan 13 '25 17:01 ndrplz

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.

hlarrainq avatar Jan 13 '25 19:01 hlarrainq

This should work now from what I can see.

ndrplz avatar Jan 16 '25 19:01 ndrplz