Skip to content

Get a direct download link from Yandex.Disk

Notifications You must be signed in to change notification settings

flameshikari/yadirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Imagine we have a Yandex.Disk link https://disk.yandex.ru/d/0gRKgtGjqWil4g and this service serving at localhost:3000. You need to cut off https://disk.yandex.ru from URL and append it to localhost:3000. Final URL will be localhost:3000/d/0gRKgtGjqWil4g

It's better to host it on the server with disk subdomain, like disk.example.com, so you can just change domain from disk.yandex.ru to disk.example.com and this service will redirect to file downloading on execution.