Guest User

Untitled

a guest
Oct 9th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. class PopularMusik:
  2.  
  3.     def __init__(self):
  4.         url = "https://api.vk.com/method/audio.getPopular?only_eng=1, count=10&access_token=(тут токен, который получил)"    
  5.         data = urllib.request.urlopen(url).read().decode('utf-8')
  6.         # Convert data from JSON to Python
  7.         self.list_of_musik = json.loads(data)
Advertisement
Add Comment
Please, Sign In to add comment