Skip to content
프로젝트

소개

Google Drive의 대용량 파일을 직접 다운로드합니다.

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

gdown.pl

Google Drive direct download of big files

Requirements

wget and Perl must be in the PATH.
Windows and linux compatible.

Usage

Use Google Drive shareable links, viewable by anyone:

$ ./gdown.pl 'gdrive file url' ['desired file name']   

Example

For example, to download this video from my axolotl project, just copy the url, and give a file name if desired:

$ ./gdown.pl https://drive.google.com/file/d/0B1L_hFrWJfRhLUJZdXdSdTdfSWs/edit axolotl.mp4   

Resuming a download

As long as a file name is indicated as second parameter, gdown.pl will try to resume the partially downloaded file if an incomplete file with that name already exists. Please note that for this to work, wget must correctly provide --spider with --server-response (-S). wget v1.17 at least is advised.

Download protected files

Download of protected files can be done manually exporting browers' auth cookies. With firefox or chrome browsers:

  1. authenticate in google drive or get access to the file download (and stop there, as you want to download it with gdown.pl)

  2. Now the browser has all the needed cookies: install cookies-txt for firefox and export them (all), or editthiscookie for chrome (in this case, change in Options the format of exportation to Netscape HTTP Cookie File)

  3. if using firefox and "cookies-txt" addon, open the cookies.txt exported file and remove the string "#HttpOnly_" from all lines. With vim this suffices: ":%s/^#HttpOnly_//" (and ":wq" to exit). If you're an experienced txt master, maintain only "^[^\s]*.google.com" lines, and remove from them the string "#HttpOnly_".

  4. copy the (cookies.txt) modified content (if using firefox and cookies-txt) or copy directly from the clipboard (if using chrome and editthiscookie addon) to gdown.cookie.temp file in the same directory where you'll run gdown.pl.

  5. run gdown.pl with your protected link

  6. It should now download the file, and any other file which needs access permissions with the account used in (1). But only until that session finishes.

Version

This version is v2.3.

Warning

Please, note that v1.2 (available between days 12 to 31 of Jan/2019) should not be used, as it contains a bug that could result in unusable downloaded files. Proceed to overwrite with v1.4 in case you have it.

Docker

A simple Docker file is provided, to build a simple Docker image with gdown.pl.
This has been used for pre-pulling data from a Google Drive to Kubernetes persistent volumes.
Thanks @anton-khodak

Singularity

An example Singularity file is provided.
Build the container: sudo singularity build (imagename) Singularity

Run the container: singularity run (imagename) (gdown.pl args)

Thanks to @ttbrunner

License

Distributed under GPL 3

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied.

More info

https://circulosmeos.wordpress.com/2014/04/12/google-drive-direct-download-of-big-files

Contact

by circulosmeos

관련 프로젝트 살펴보기

불러오는 중…