Advertisement
sdsfefwvwwcew

Untitled

Apr 14th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.81 KB | None | 0 0
  1. import requests
  2. import json
  3. import time
  4. import csv
  5.  
  6.  
  7. def take_1000_posts():
  8.     token = '28a247f163b88f4d635068b2f60e1f5cc4240d90e4d5c59c3898371c3713100abde6073cdb41ddb1c6196'
  9.     version = 5.103
  10.     count = 1000
  11.     offset = 0
  12.     all_posts = []
  13.     response = requests.get('https://api.vk.com/method/friends.get?',
  14.                             params={
  15.                                 'access_token': token,
  16.                                 'v': version,
  17.                                 'user_id': 472573055,
  18.                                 'fields': 'city, domain, education, status, sex, country, interests',
  19.                             }
  20.                             )
  21.     data = response.json()['response']['items']
  22.     response.json()
  23.     data.json()
  24.     return all_posts
  25.  
  26. all_posts = take_1000_posts()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement