/yadisk-direct

Get real direct links usable with tools like curl or wget for files stored in Yandex.Disk.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Yandex.Disk direct links extractor

Get real direct links usable with tools like curl or wget for files stored in Yandex.Disk.

Usage

Install with:

pip3 install wldhx.yadisk-direct

Get a real direct link:

yadisk-direct https://yadi.sk/i/LKkWupFjr5WzR

Download a file with a one-liner:

curl -L $(yadisk-direct https://yadi.sk/i/LKkWupFjr5WzR) -o my_local_filename

Disclaimer

While this code depends on an open Yandex's API, I heartily recommend you to not use it in anything resembling production environments.