Advertisement
Xlorddx

Untitled

Aug 19th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. import requests, json
  2.  
  3. domain = 'kinopoisk'
  4. count = 10
  5. token = '596e42f2596e42f2596e42f274590bf55b5596e596e42f2021776f494971854bc0c8b95'
  6.  
  7. url = "https://api.vk.com/method/wall.get?domain={}&count={}&access_token={}&v=5.74".format(domain, count, token)
  8.  
  9. response = requests.get(url)
  10. answer = json.loads(response.text)
  11.  
  12. for post in answer['response']['items']:
  13.     print(post['likes']['count'])
  14.     print(post['comments']['count'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement