+ 3

Download file from Google Drive with Python.

I want to download a file from Google Drive with Python3, but the problem is that the file exceeds 25MB. Due to this, when I go through the download link, I go to a page which says that the file is too large for Google to scan. I was using requests. Thus, it retrieves the HTML page instead of the file. I need a direct link.

30th Nov 2019, 1:15 PM
Arnesh
Arnesh - avatar
1 Respuesta
+ 4
It probably won't work by scraping. You can use Drive API to work with Google drive. First you need to enable the API, do some initial configurations. Later you can download a file using the ID of the file. You can read more here: https://developers.google.com/drive/api/v3/manage-downloads
2nd Dec 2019, 2:25 AM
Шащи Ранжан
Шащи Ранжан - avatar