Skip to main content

vk.com API python wrapper

Project description

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.

Project details


Release history Release notifications

History Node

2.0.2

History Node

2.0.1

History Node

2.0

History Node

2.0-beta

History Node

2.0a4

History Node

1.5.3

History Node

1.5.2

History Node

1.5.1

History Node

1.5

History Node

1.4.6

This version
History Node

1.4.5

History Node

1.4.4

History Node

1.4.3

History Node

1.4.2

History Node

1.4.1

History Node

1.4

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
vk-1.4.5.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Apr 12, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page