How to get all the comments of a particular user left on the wall under posts in a particular community in VK?
I examined all the methods that exist in the VK API and have not yet found a way to complete this task.
as the source data in this task is given the ID of the ID of the Community.
here is an example I tried to implement:
for i in range span> ( 200 ): url = "" https://api.vk.com/method/wall.get?owner_id=%S& ;Offset=%S& ;COUNT=1 "" %(self.text1.toplaintext (), i) Response = REQUESS.GET (URL) .TEXT PARSED_STRING = JSON.loads (Response) URL1 = "" https://api.vk.com/method/wall.getcomments?owner_id=%s& ;Post_id=%S& ;CUNT=100 "" %(self.text1.toplaintext (),,,) PARSED_STRING [ 'response' ] [ 1 ] [] [ 'd' ]) Response1 = REQUESS.GET (URL1) .Text Parsed_String1 = json.loads (response1) for j in range ( 1 , len (parade_string1 [ 'response' ])): if parsed_string1 [ 'response' ] [j] [ 'items' ] [ 'from_id' ] == Self.text2.toplaintext (): item1 = qtablewidgetetem (PARSED_STRING1 [] [J] [ 'items' ] [ 'text' ]) item2 = qtablewidgetetem ( str (Dateetime.Datetime.fromestamp (Parsed_string1 [ 'response' ] [j] [ 'items' ] [ 'data' ])) self.tablewidget.setitem (I- 1 , 0 , item1) self.tablewidget.setitem (I- 1 , 1 , item2) but in this case too frequent server requests are taking place, and this option is too disaster. Tell me, please, in which direction I have to move and what thoughts do you have on this topic.
question@mail.ru
·