Skip to main content API Python wrapper

Project description

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


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()
>>> profiles = vkapi.users.get(user_id=1)
>>> profiles[0]['last_name']
>>> # alternative syntax
>>> profiles = vkapi('users.get', user_id=1)
>>> profiles[0]['last_name']

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

See 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

vk-1.5.tar.gz (4.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page