'How can I simulate clicking download button in terminal and download large gdrive file

I want to download a large file from gdrive in remote server. I can download the file in my Chrome via clicking download and confirm. My question is how can simulate the click download button in a terminal or a simple programming script so that I can download the file on my remote server.

  1. Take an example of this file
  2. I can check the Chrome network enter image description here
  3. (it does not work for gdrive, but works for some website) Though I do not understand why it works, I can use the feature copy as curl and get runnable terminal cmd to download some file. enter image description here

Note

  1. I find there is a good python package gdown and easy to use. However, for some large file, it can not work. For exmaple, this 500mb file. For the large file, gdrive ask a another confirmation enter image description here

It would be great if I understand how "download button" works and simulating click action in remote server.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source