Get real direct links usable with tools like curl
or wget
for
files stored in Yandex.Disk.
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
While this code depends on an open Yandex's API, I heartily recommend you to not use it in anything resembling production environments.