Gdrive: How are we supposed to download gdrive with no gdrive?

Created on 3 May 2017  路  5Comments  路  Source: prasmussen/gdrive

What if we want to install gdrive to a remote server and scp is not an option. Its very hard to download files shared on google drive via wget/curl.
I think the compiled binaries should should also be hosted somewhere so that anyone can download them via wget/curl.

PS: archive.org could be a good option.

Most helpful comment

Could you quantify "very hard to download files shared on google drive via wget/curl"?

Do you mean, for example, this does not work?

wget -O gdrive-linux-x64 https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download

All 5 comments

Could you quantify "very hard to download files shared on google drive via wget/curl"?

Do you mean, for example, this does not work?

wget -O gdrive-linux-x64 https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download

Sometimes HTML is returned from google's server and that is downloaded.

If you're getting plaintext HTML, it means you're not using the right URL. I see this commonly with sourceforge, if someone wgets the download page link, instead of the direct link.

  1. Make sure that the client follows HTTP redirects. For example with curl, add the -L option. wget follows redirects by default.
  2. Make sure to quote the URL in the shell, some shells treat & as the background operator which means part of the URL is missing.

Example:

curl -fLo gdrive "https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"

Could this be added to the installation instructions?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GaryFurash picture GaryFurash  路  3Comments

jnovotny picture jnovotny  路  3Comments

mikeyfev1 picture mikeyfev1  路  4Comments

dominion66 picture dominion66  路  4Comments

aservet1 picture aservet1  路  5Comments