Skip to main content

vk.com (aka vkontakte.ru) API 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.

Installation

$ pip install vkontakte

Usage

>>> import vkontakte
>>> vk = vkontakte.API('my_api_id', 'my_api_secret')
>>> print vk.getServerTime()
1282689362

>>> profiles = vk.getProfiles(uids='1,2', fields='education')
>>> pavel = profiles[0]
>>> print pavel['last_name'], pavel['university_name']
Дуров СПбГУ

>>> # custom timeout example (default timeout = 1s)
>>> vk = vkontakte.API('my_api_id', 'my_api_secret', timeout=5)
>>> print vk.getAppBalance()
0

All API methods should be supported.

See http://bit.ly/9Nzc8h for detailed API help.

Project details


Download files

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

Source Distribution

vkontakte-0.9.3.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file vkontakte-0.9.3.tar.gz.

File metadata

  • Download URL: vkontakte-0.9.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vkontakte-0.9.3.tar.gz
Algorithm Hash digest
SHA256 412d6e9b7d2c36e3d86ba7d7591124674558e1835fab2c76b70716950ea04098
MD5 6446a697074cb2b31c4a3c4f76b19ebf
BLAKE2b-256 1629f83b2bf33539b06decd5c7d141f9ddb2cb1598fd1753bd949f0c9dae2f4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page