Zdownloader is a lightweight download manager running from command line. Zdownloader was written in C++ and supports downloading files by HTTPS from services such as:
ZippyShare,
Google Drive,
MegaUp(megaup.net).
Features
Can download multiple files at a time.
Supports segmented downloading.
It can resume interrupted downloads.
Can check multiple links at a time.
It can reconnect after specific time if download speed is too low.
It can unpack archive files after download. Supports: rar, 7z and zip.
Supports network proxies.
Allows you to download google drive files even if the daily limit of download has exceeded using google drive REST API v3.
Requirements
Linux x86-64
ldd zdownloader:
linux-vdso.so.1
libbotan-2.so.13
libQt5Network.so.5
libQt5Core.so.5
libQt5Script.so.5
libpthread.so.0
libstdc++.so.6
libgcc_s.so.1
libc.so.6
libz.so.1
libdl.so.2
libm.so.6
/lib64/ld-linux-x86-64.so.2
General
Linux kernel >= 3.2.0
glibc(libc6) >= 2.25
OpenSSL >= 1.1.0
Qt5 >= 5.13.0 I have attached precompiled Qt libs in lib directories (license: GNU LGPL version 3, Qt source code: https://code.qt.io)
Botan >= 2.14 - needed for JWT sign in gdrive api I have attached precompiled Botan library in lib directory (https://botan.randombit.net)
# this is comment
https://www73.zippyshare.com/v/0deWxCol/file.html
https%3A%2F%2Fwww73.zippyshare.com%2Fv%2F0deWxCol%2Ffile.html
--
https://drive.google.com/file/d/2M4RhNINIETzt-a6tbkdwLTBS9CAqM-WD
--
https://megaup.net/3Pwaa/something.rar #comment: example link
download_list.txt file:
download_list.txt file is created after links checks,
download list has format:
file_name URL group_id file_size
Four fields separated by tab character. Group_id contains group number - is used for unpack archives.
You can edit(eg. change order) download_list.txt when zdownloader is not running,
If remote file does not exists then zdownloader skips that file.
finished_downloads_*.txt files:
contains timestamp, download status, file name and URL,
download_status can be: F (download finished with success), X (skipped download, file already exists on disk), R (skipped download, remote file does not exists)
How gdrive download limit bypass works?
Zdownloader can download google drive files even if the daily limit of download has exceeded. For that zdownloader can use google drive REST API v3.
Before you start see how to enable and create service account: LINK
The Google Drive API provides an option for 3rd party applications to store their own data on Google Drive, but sandboxed from the user's main file storage area. Hence zdownloader cannot read, modify or delete your Google Drive data. A user's space allocation (default 15GB) is shared between all applications that store data in their Google Account - Drive, Gmail, Google Photos and 3rd party apps like zdownloader.
At first step zdownloader list all files on gdrive.
Next zdownloader deletes all found files.
At last step the application copies the file to your gdrive and download it.
When using gdrive api you can download one gdrive file at a time(but you can use many segments and other services like zippyshare).
rar: unrar x -parchive_pwd -ai -y -c- -o+ archive_filename archive_dir/
7z: 7z x -parchive_pwd -aoa -y -oarchive_dir/ archive_filename where archive_dir is file name without extension.
While the unpack is running, unpack_queue.txt file is created in the current directory.
Start and stop
You can run zdownloader by ./start_zd.sh from zdownloader directory.
To stop zdownloader press Ctrl-C or send SIGINT or SIGTERM signal.
Running zdownloader on MacOS
Unpack macos_x64.tgz and copy zdownloader.app to user's home directory.
Edit zdownloader.ini in zdownloader.app/Contents/MacOS/zdownloader.ini
Edit links.txt in zdownloader.app/Contents/MacOS/links.txt
Run Terminal and write commands:
bash
cd zdownloader.app/Contents/MacOS/
./zdownloader
Settings are stored in zdownloader.ini file:
Hint: in zdownloader.ini file you cannot use tilde(~) character as alias to user's home directory.
…
Zdownloader can power off system on download finish. For that zdownloader uses
for Linux: sudo shutdown --no-wall -P +2 command which should execute without any passwords,
for Windows: shutdown /s /t 120 command.
applog_*.log files:
Zdownloader can save everything from standard output to rotated log files: applog_1.log ...
*.zdm files:
When the download is interrupted, the program saves segment offsets to *.zdm files in download_directory. The zdm file also contains the number of remaining bytes to download.
All contributions are welcome
Help and contributions can be any of the following:
star the project
new feature or bug fixing via a pull requests
report issues to the project issues page
other ideas
If you like this project please give it a star ⭐. Thanks!