Note: This script can Google Drive
share a link or file network disk files ID
become straight, we call convenient in many cases. Only supports file sharing does not support folders. File sharing ID
is 26
to 48
bits.
use
1, demand
wget、grep、cat、head #系统一般都有,Centos 7可能要安装wget
2. Download the script
wget --no-check-certificate -qO /usr/local/bin/gdlink 'https://www.moerats.com/usr/shell/gdlink.sh' && chmod a+x /usr/local/bin/gdlink
3. Usage
Note: Share link for permission to get "Anyone with the link."
#Work with share link / share link using way gdlink 'https://drive.google.com/open?id=0B8SvBXZ3I5QMcUduTMJEanRkMzQ' #work with the above mentioned id File / file using the ID mode gdlink '0B8SvBXZ3I5QMcUduTMJEanRkMzQ' #download with Link report this content share / shared use direct download link using wget link ## which can change the file name or file ./download they need the absolute path gdlink 'https://drive.google.com/open?id=0B8SvBXZ3I5QMcUduTMJEanRkMzQ' | xargs -n1 wget - c -O ./download
4, recall scenes
such as the DD
Tutorial: Linux VPS unlimited one-click automated script installation of Windows DD .
To get to the Google network drive in the DD
mirror links
https://drive.google.com/open?id=0B8SvBXZ3I5QMcUduTMJEanRkMzQ
The call to share links. (The file ID
is replaced with your own can)
#Work with share link / share link mode using bash DebianNET.sh -dd "$ (echo" https://drive.google.com/open?id=0B8SvBXZ3I5QMcUduTMJEanRkMzQ "| xargs -n1 bash <(wget --no-check -qO- -certificate 'https://moeclub.org/attachment/LinuxShell/gdlink.sh')) " #work with the above mentioned id file / file using the ID mode bash DebianNET.sh -dd" $ (echo " 0B8SvBXZ3I5QMcUduTMJEanRkMzQ" | xargs -n1 bash <(wget --no-check -certificate -qO- 'https://moeclub.org/attachment/LinuxShell/gdlink.sh')) "
Network disk linear acquisition tool can also refer to the following URL
实例下载:
[root@iZj6c9ev4k7bawyw8s7nljZ ~]# wget https://link.gimhoy.com/googledrive/aHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL2thZ2dsZS1kYXRhc2V0cy8xMzk2MzAvMzI5MDA2L2Zhc2hpb24tcHJvZHVjdC1pbWFnZXMtZGF0YXNldC56aXA/R29vZ2xlQWNjZXNzSWQ9d2ViLWRhdGFAa2FnZ2xlLTE2MTYwNy5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSZFeHBpcmVzPTE1NTk4MDExMzImU2lnbmF0dXJlPVpSY1psUmdCYmRCVWViMGU3dGJQYnFXYmt5azFIUGNIZ1NGSGNobGNlVTBmdlJqell6bnQyVGhQQ0xNbmgzSUJZdDdOQ2U0dUtrbUJuN1Y2YzJIdVFBMzFPZ2pyT3ZhSkM5VnlscHZOQ1VVV1ZYYkJFZ2RKVzFMVTBjQzFnS2JUSnFIMG1wbGEzRnkwYktwaEZVZnp4TGtGbGZST3o2JTJGMlVET0F3c2tyUWtVT2FhMlcwd0JCaDdvWDl6WWpZSU15Nnh4M0FvMDFoM3pnNEpQSDQ0UE4yazdPUEcwU1RMZDVEME5CZnpHOXpYVjk2OWwlMkJ4d28zQnBuN1NQdk5vVkNKZERWbG5rY2N3WThKQWVaM0dlZFpWYURMdjVMRnJ1bXRNM08lMkZGOXRZM2pGRFVidUU4VklZTXBIMXJMbnZBcWdWaFRmUHR3ZEx0cmpxWHlKOGxOS0NEZyUzRCUzRA==.zip -c -O ./dataset.zip [root@iZj6c9ev4k7bawyw8s7nljZ ~]# wget --no-check-certificate -qO /usr/local/bin/gdlink 'https://www.moerats.com/usr/shell/gdlink.sh' && chmod a+x /usr/local [root@iZj6c9ev4k7bawyw8s7nljZ ~]# gdlink 'https://drive.google.com/open?id=1lQZOIkO-9L0QJuk_w1K8-tRuyno-KvLK' |xargs -n1 wget -c -O ./train.zip Warning: wildcards not supported in HTTP. --2019-06-03 14:18:02-- https://doc-0c-4o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/me71dile70q5qah4h97fnk7otq9tsnto/1559541ad Resolving doc-0c-4o-docs.googleusercontent.com (doc-0c-4o-docs.googleusercontent.com)... 216.58.220.193, 2404:6800:4005:80d::2001 Connecting to doc-0c-4o-docs.googleusercontent.com (doc-0c-4o-docs.googleusercontent.com)|216.58.220.193|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘./train.zip’ [ <=> ] 10,633,411,064 12.2MB/s in 13m 49s/s 2019-06-03 14:31:51 (12.2 MB/s) - ‘./train.zip’ saved [10633411064]