skip to navigation
skip to content

Not Logged In

vk 1.4.5

vk.com API python wrapper

Latest Version: 2.0-beta

This is a vk.com (aka vkontakte.ru, largest Russian social network) python API wrapper. The goal is to support all API methods (current and future) that can be accessed from server.

Install

pip install vk

Get access

import vk

# Use app id, user email/phone and password for access to API
vkapi = vk.API('my_app_id', 'user_login', 'user_password')
# or ready access token
vkapi = vk.API(access_token='access_token')

Make requests

>>> vkapi.getServerTime()
1395870238
>>> profiles = vkapi.user.get(user_id=1)
>>> profiles[0]['last_name']
'Дуров'
>>> # alternative syntax
>>> profiles = vkapi('user.get', user_id=1)
>>> profiles[0]['last_name']
'Дуров'

All API methods that can be called from server should be supported.

See https://vk.com/developers.php?id=-1_11226273 for detailed API help.

 
File Type Py Version Uploaded on Size
vk-1.4.5.tar.gz (md5) Source 2014-04-12 4KB
  • Downloads (All Versions):
  • 84 downloads in the last day
  • 677 downloads in the last week
  • 2543 downloads in the last month