Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import vk_api
  2. import matplotlib.pyplot as plt
  3. from collections import Counter
  4. import numpy as np
  5. import requests
  6.  
  7. vk_session = vk_api.VkApi('89246057878', 'QwasQwasQwas')
  8. vk_session.auth()
  9. vk = vk_session.get_api()
  10.  
  11. city = vk.database.getCities(country_id=1, q="Иркутск")['items'][0]['id']
  12.  
  13. print(city)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement