import vk_api
import requests
import datetime
import json
import io
vk_session = vk_api.VkApi('1', '1')
vk_session.auth()
vk = vk_session.get_api()
enter_user_id = input('Send user id: ')
a = vk.friends.get(
user_id = enter_user_id,
order = 'hints',
count = 5000,
offset = 5,
fields = 'city,universities,country,timezone',
name_case = 'nom',
)
print(a)
json.dump(data, open(filename, mode='tw'))