I
I
Ivan Geraskin2020-02-20 23:15:00
Python
Ivan Geraskin, 2020-02-20 23:15:00

How can I now upload a list of audio recordings from a VKontakte user using Python?

I need to download a list of audio recordings (artist and title of the audio recording) for a specific user_id.
3 months ago the following code worked:
############
import vk_api
from vk_api import audio

login='[email protected]'
password ='********'

vk_session = vk_api.VkApi(login=login, password=password)
vk_session.auth()
vk = vk_session.get_api()
vk_audio = audio.VkAudio(vk_session)

i = vk_audio.get(owner_id=12094098)
###### ######

Now this code doesn't output anything. Can you please tell me how can I accomplish this task? (ideally, sample code). I will be sincerely grateful)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-02-21
@dimonchik2013

https://freelance.habr.com/

I
Ivan Geraskin, 2020-02-25
@vanyager

I just updated the version of vk-api to the latest and it worked)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question