File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
68Copyright (C) 2013
79'''
810
9- # -*- coding: utf-8 -*-
1011import vk_api
1112
1213
@@ -26,7 +27,7 @@ def main():
2627 'count' : 1 # Получаем только одно сообщение
2728 }
2829 response = vk .method ('wall.get' , values ) # Используем метод wall.get
29- print (response [1 ]['text' ]) # Печатаем текст последнего поста со стены
30+ print (response ['items' ][ 0 ]['text' ]) # Печатаем текст последнего поста со стены
3031
3132if __name__ == '__main__' :
3233 main ()
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
68Copyright (C) 2013
79'''
810
9- # -*- coding: utf-8 -*-
1011import os
1112import json
1213
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+
13'''
24@author: Kirill Python
35@contact: http://vk.com/python273
68Copyright (C) 2013
79'''
810
9- # -*- coding: utf-8 -*-
10-
1111
1212class VkUpload (object ):
1313 def __init__ (self , vk ):
You can’t perform that action at this time.
0 commit comments