H
H
Hecq2018-04-22 19:31:21
Python
Hecq, 2018-04-22 19:31:21

How to download a wall with comments from Vkontakte?

I found several solutions, including on Habré, but at the moment I could not get any to work, possibly due to an API update.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sgaynetdinov, 2018-06-15
@sgaynetdinov

Try using the py-vkontakte library .

import vk
api = vk.Api(YOUR_TOKEN)
group = api.get_group(YOUR_GROUP_ID_OR_SLUG)
all_comments = [comments for wall in group.get_walls() for comment in wall.get_comments()]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question