I have tried so many ways to download google drive public file but unable to find any answer? If anyone knows how to do that please help me.
Note: without using Google drive api
Most files (docs, sheets, presentation, etc..) can be downloaded by replacing edit with export?format= in the URL.
https://docs.google.com/document/d/FILE-ID/edit
https://docs.google.com/document/d/FILE-ID/export?format=doc
There are a lot of formats available (pdf/doc/pptx/xlsx/csv/jpg/etc...)
The above solution usually works fine with pdfs, images, native google files and microsoft office files. However, if you are trying to download another type of file, you can use the next URL.
https://drive.google.com/uc?export=download&id=FILE-ID
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.