S
S
Sergey Josephf2020-08-12 19:57:19
Python
Sergey Josephf, 2020-08-12 19:57:19

Uploading photos to a user's album?

I have a code that uploads photos to a page in VK.
The question is: how do I make the photos upload to a specific album that I specify (for example - album_id: 123_123)
[And there is an error that points to line 6 of the code: Session = vk.AuthSession).
Help me please :)

cid = input("[АВТОРИЗАЦИЯ]\n\nВведите номер: ")
number = cid
cod = input("[АВТОРИЗАЦИЯ]\n\nВведите пароль: ")
password = cod
import vk
Session = vk.AuthSession(
    app_id='1073737727', user_login= number, user_password= password, scope='wall,  groups'
)
vk_api = vk.API(Session)
vk_api.wall.post(
    owner_id=- '****',
    message='hello world',
    attachments='photo593863583_457283569'
)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question