https://github.com/yegorov/yadisk
Download file from Yandex.Disk through share link
https://github.com/yegorov/yadisk
command-line-tool filemanager ruby yadisk yandex yandex-disk
Last synced: about 1 month ago
JSON representation
Download file from Yandex.Disk through share link
- Host: GitHub
- URL: https://github.com/yegorov/yadisk
- Owner: Yegorov
- License: mit
- Created: 2018-01-25T16:41:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T20:55:47.000Z (over 1 year ago)
- Last Synced: 2025-03-25T03:49:04.855Z (about 2 months ago)
- Topics: command-line-tool, filemanager, ruby, yadisk, yandex, yandex-disk
- Language: Ruby
- Homepage: http://www.rubydoc.info/gems/yadisk
- Size: 73.2 KB
- Stars: 54
- Watchers: 2
- Forks: 9
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/rb/yadisk)
[](https://travis-ci.org/Yegorov/yadisk)
[](https://coveralls.io/github/Yegorov/yadisk?branch=master)Yadisk
======Command line tool for download file from Yandex.Disk through share link
## Install
```
$ gem install yadisk
```For development:
```
$ gem install --dev yadisk
```## How use
```
# Save to current directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ# Save to other directory
$ yadisk https://yadi.sk/i/HEjuI2Ln3RiRcQ /path/to/directory
```## How use for development
```
# 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
```## Dependencies
* [wget](https://www.gnu.org/software/wget/)
* [ruby](https://www.ruby-lang.org/ru/downloads/) >= 2.2## Use in Windows
1. Download and install wget from [gnuwin32.sourceforge.net](http://gnuwin32.sourceforge.net/packages/wget.htm)
2. Add `\GnuWin32\bin` (E.g. `C:\Program Files (x86)\GnuWin32\bin`) to [PATH environment variable](https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/).## Use Docker
```
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
```## Use Docker for Dev
To be soon
## Test
For run test use:
```
$ rspec
```## Contribution
Feel free for send me pull request.
## License
License (MIT) Copyright (c) 2018 Yegorov A. [email protected]