Coder Social home page Coder Social logo

yegorov / yadisk Goto Github PK

View Code? Open in Web Editor NEW
52.0 3.0 9.0 75 KB

Download file from Yandex.Disk through share link

Home Page: http://www.rubydoc.info/gems/yadisk

License: MIT License

Ruby 98.60% Dockerfile 1.40%
ruby yandex-disk command-line-tool yandex yadisk filemanager

yadisk's Introduction

Gem Version Build Status Coverage Status

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

  1. Download and install wget from gnuwin32.sourceforge.net
  2. 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. [email protected]

yadisk's People

Contributors

cmrd-senya avatar dependabot-preview[bot] avatar yegorov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yadisk's Issues

Download Error

Unable to download this file: https://yadi.sk/i/0Vx6zbpPgHBRYA

Giving me this error

Traceback (most recent call last): 4: from /usr/local/bin/yadisk:23:in

'
3: from /usr/local/bin/yadisk:23:in load' 2: from /var/lib/gems/2.5.0/gems/yadisk-0.2.0/bin/yadisk:28:in <top (required)>'
1: from /var/lib/gems/2.5.0/gems/yadisk-0.2.0/lib/yadisk.rb:20:in download' /usr/lib/ruby/2.5.0/uri/common.rb:745:in URI': bad argument (expected URI object or URI string) (ArgumentError)`

Error ENOENT

ScreenShot_20200812224928
Having this error when I try using the program. I have wget installed, and recently used it, so I don't know why yadisk doesn't recognize it

Got error: ENOENT on Mac

image

I see the previous comment, you provided a fix but it's for Windows. I'm getting this error on Mac

macOS и wget

Привет.
Для того чтобы работало на macOS пришлось немного подкорректировать ваши скрипты.
check_runtime.rb - wget вместо where wget, иначе не находит wget
yadisk.rb - добавить --no-config для wget иначе с некоторыми wgetrc(зависит от настроек) будет выдавать ошибку forbidden и т.п.
Спасибо за программу.

Error 507

I get error 507: Insufficient Storage when trying to download a folder by link. The folder I am trying to download is about 50GBs and I have more than enough space for it on my local disk.

Error (Errno::ENOENT)

image

I'm having this error, even though I have wget installed and the program used to work, I reinstalled everything from scratch but the error persists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.