Yadisk
Download file from Yandex.Disk through share link
Install / Use
/learn @Yegorov/YadiskREADME
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
Use in Windows
- 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.
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. yegorov0725@yandex.ru
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
