import credentials
import vk_api

group_name = 'drug_prg'


def main():

    vk_session = vk_api.VkApi(credentials.login, credentials.password)

    try:
        vk_session.auth()
    except vk_api.AuthError as error_msg:
        print(error_msg)
        return

    tools = vk_api.VkTools(vk_session)
    vk = vk_session.get_api()

    group_info = vk.groups.getById(group_id=group_name)
    group_id = group_info[0]['id']

    new_id = ('-' + str(group_id))
    wall = tools.get_all('wall.get', 100, {'owner_id': new_id})

    print('Downloaded', len(wall['items']), 'posts')

    for post in wall['items']:
        post_id = post['id']
        t = vk.likes.getList(type='post', owner_id=new_id, item_id=post_id, filter='likes', friends_only=1, extended='1')
        if t['count'] > 0:
            for i in t['items'][:-1]:
                print(i['last_name'], ' ', i['first_name'], ', ', sep='', end='')
            print(t['items'][-1]['last_name'], ' ', t['items'][-1]['first_name'], sep='')
            print('Liked this :', 'https://vk.com/wall'+str(new_id)+'_'+str(post_id))
            if len(post['text']):
                print('Text:', post['text'])
            print('-------------------------------')


if __name__ == '__main__':
    main()
@@ -51,16 +51,38 @@
 ug_prg'%0A
+posts_to_search = 500%0A
 %0A%0Adef ma
@@ -478,16 +478,18 @@
 id))%0A   
+ #
  wall = 
@@ -550,23 +550,295 @@
     
-print('Download
+left = posts_to_search%0A    off = 0%0A    fetch_at_a_time = 100%0A%0A    while left %3E 0:%0A        _count = fetch_at_a_time if left %3E fetch_at_a_time else left%0A        left -= _count%0A        wall = vk.wall.get(owner_id=new_id, count=_count, offset=off)%0A        off += _count%0A%0A        print('Fetch
 ed',
@@ -868,16 +868,19 @@
 osts
+...
 ')%0A%0A    
 for 
@@ -871,24 +871,28 @@
 s...')%0A%0A    
+ 
+   
 for post in 
@@ -914,16 +914,20 @@
         
+    
 post_id 
@@ -939,16 +939,20 @@
 t%5B'id'%5D%0A
+    
         
@@ -1073,16 +1073,20 @@
         
+    
 if t%5B'co
@@ -1092,24 +1092,71 @@
 ount'%5D %3E 0:%0A
+                print(%22%5CnUser(s)%22, end=%22%22)%0A    
             
@@ -1193,24 +1193,28 @@
             
+    
 print(i%5B'las
@@ -1210,18 +1210,19 @@
 rint(i%5B'
-la
+fir
 st_name'
@@ -1232,19 +1232,18 @@
 ' ', i%5B'
-fir
+la
 st_name'
@@ -1275,24 +1275,28 @@
             
+   
+ 
 print(t%5B'ite
@@ -1305,18 +1305,19 @@
 '%5D%5B-1%5D%5B'
-la
+fir
 st_name'
@@ -1332,35 +1332,34 @@
 t%5B'items'%5D%5B-1%5D%5B'
-fir
+la
 st_name'%5D, sep='
@@ -1357,24 +1357,28 @@
 '%5D, sep='')%0A
+    
             
@@ -1463,16 +1463,20 @@
         
+    
 if len(p
@@ -1501,24 +1501,28 @@
             
+  
+  
 print('Text:
@@ -1538,16 +1538,20 @@
 text'%5D)%0A
+    
         
@@ -1595,16 +1595,81 @@
 -----')%0A
+            else:%0A                print(%22.%22, end=%22%22, flush=True)%0A
 %0A%0Aif __n
@@ -1695,12 +1695,13 @@
 :%0A    main()
+%0A

Make depth variable