D
D
Dmitry Loginov2019-09-16 17:41:02
Python
Dmitry Loginov, 2019-09-16 17:41:02

How to get a link to a public file uploaded to Yandex.disk?

To work with Ya.disk, I use the YaDisk library.
Actually, there are no problems with uploading photos to disk.
Task: after downloading, get a link to a public file. Not a download link, and the usual url
I did not find it in the manual for the library, unfortunately.
Maybe someone knows?
Thank you in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Taus, 2019-09-16
@Gusik1984

Looks like they didn't search well. Everything is yadisk.YaDisk.publish , yadisk.functions.resources.publish .

Y
Yandex_Support, 2019-09-17
@Yandex_Support

Hello!
You can create a public link in any convenient way described here: https://yandex.ru/support/disk/share/sharing.html .
This documentation is also useful for your question:
REST API: https://yandex.ru/dev/disk/api/reference/recent-pu...
WebDAV API: https://yandex.ru/dev/disk/doc/ dg/reference/publish...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question