A
A
Alex P.2018-02-26 01:38:27
Python
Alex P., 2018-02-26 01:38:27

How to upload a file to Yandex.disk python?

task: transfer the file to Ya.Disk ..
used this library ..
the actual code, as written in the manual

import yandexwebdav

conf = yandexwebdav.Config({
    "user": "user",
    "password": "pass"
    })

conf.upload(localpath='/photo.jpg', href='/dildo/')

but after executing the code, there was silence in response ..
during the experiments, I found that other functionality of the library works, but somehow it didn’t work with loading and unloading files ..
question: what am I doing wrong ??? ..
maybe this is due to blocking Yandex in Ukraine ??..
PS: there is also a suspicion that the library does not work quite correctly .. if so, what can be used as an alternative ??..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ramis, 2019-09-23
@ramzis

Regarding the yadisk library, it may be useful for beginners, although everything is clearly written in the documentation, article

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question