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.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 https://vk.com/developers.php?id=-1_11226273 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.4.6.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file vk-1.4.6.tar.gz.

File metadata

  • Download URL: vk-1.4.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vk-1.4.6.tar.gz
Algorithm Hash digest
SHA256 a7d959a2ba90eaaa99ab3e33c3c993e4a79651090fd49b976822fab54ff3bd09
MD5 dee5a1cebc1e95a6763b93407ca0121f
BLAKE2b-256 86a11bbf9dede83362c2d6af7c6040c00e82c41b6df5eb5636774e33a0c8b4a5

See more details on using hashes here.

Supported by

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