As of 18 Nov 2019 to use wget to download a file from Google Drive, I used the following method. For this method, we need to know, whether our file size comes under small or large cat. I could not figure out the exact number which differentiate between small and large sizes, but I suppose it is some where around 100 MB. But you can always use any of the two methods mentioned for your files, as one will only work for small and other for large.
Basic Steps to be followed
Step 1 Make your file to be shared as "Accessible to anyone having internet". This can be done by Right Clicking the file --> Click on Share option --> Click on Advances radio button --> Change access to "Public On the web"
Step 2 Save it and click Done
Step 3 Again right click on the file and click on "Get Shareable Link". This will copy the link to clipboard.
Step 4 Copy everything after ?id= till end and save it to notepad file. This is your FILE_ID, which is used below.
Step 4 Follow below mentioned steps, based on file sizes, after performing above common steps.
Small Files
Step 1 Use the command:
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O FILE_NAME_ALONG_WITH_SUFFIX
FILE_ID should be copied from above step and FILE_NAME_ALONG_WITH_SUFFIX is the name of the file you want it to save it on your system/ server. Note that, do not forget to add the suffix like (.zip , .txt etc)
Step 2 Run the command. It may show "Will not apply HSTS" as error but its ok. Your file will be copied.
Large Files
Step 1 Use the command
wget --no-check-certificate --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILE_ID" -O FILE_NAME_ALONG_WITH_SUFFIX && rm -rf /tmp/cookies.txt
Change FILE_ID in 2 locations and FILE_NAME_WITH_SUFFIX once.
Step 2 Execute the command, it may give same error as mentioned above but thats ok.
Hope it helps..