skip to navigation
skip to content

Not Logged In

vk 1.4.1

vk.com API python wrapper

Latest Version: 1.5.3

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.

Installation

$ pip install vk

Usage

>>> import vk

Login via 1 of 3 ways:

>>> vk_api = vk.API('my_app_id', 'user_email', 'user_password')  # or
>>> vk_api = vk.API(access_token='access_token')  # or
>>> vk_api = vk.API('my_app_id', app_secret='my_app_secret')  # deprecated by vk.com

Make requests:

>>> vk_api.getServerTime()
1395870238
>>> profiles = vk_api.getProfiles(uids=1)
>>> profiles[0]['last_name']
Дуров
>>> # alternative syntax
>>> profiles = vk_api('getProfiles', uids=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.1.tar.gz (md5) Source 2014-03-27 3KB
  • Downloads (All Versions):
  • 45 downloads in the last day
  • 297 downloads in the last week
  • 1251 downloads in the last month