Command line tool for download file from Yandex.Disk through share link
$ gem install yadisk
For development:
$ gem install --dev yadisk
# Save to current directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ
# Save to other directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ /path/to/directory
# Local build and install to rubygems
$ gem build yadisk.gemspec && gem install yadisk-*
# Remove local file and uninstall from rubygems
$ rm yadisk-*.gem && gem uninstall yadisk
# Run script from local folder
$ ruby -Ilib ./bin/yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ
- Download and install wget from gnuwin32.sourceforge.net
- Add
<you base path>\GnuWin32\bin
(E.g.C:\Program Files (x86)\GnuWin32\bin
) to PATH environment variable.
docker build -t yadisk .
docker run -v ${pwd}:/yadisk --rm -it yadisk sh # for interactive
docker run --rm yadisk yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ
docker run -v $(pwd):/yadisk --rm yadisk yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ
To be soon
For run test use:
$ rspec
Feel free for send me pull request.
License (MIT) Copyright (c) 2018 Yegorov A. [email protected]