SHARE
TWEET

Untitled

a guest Dec 8th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top