All Projects → sgaynetdinov → py-vkontakte

sgaynetdinov / py-vkontakte

Licence: MIT license
A Python wrapper around the vk.com

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to py-vkontakte

vk-api
VK SDK | VKontakte wrapper for standalone apps
Stars: ✭ 30 (+76.47%)
Mutual labels:  vk, vkontakte, vkontakte-api, vk-api, vkapi
vbio
Python модуль для написания скриптов, использующих Bots API для социальной сети Вконтакте (vk.com)
Stars: ✭ 10 (-41.18%)
Mutual labels:  vk, vkontakte, vkontakte-api, vk-api, vkapi
kasthack.osp
Генератор сырых дампов пользователей VK.
Stars: ✭ 15 (-11.76%)
Mutual labels:  vk, vkontakte, vk-api, vkapi
VK-Scraper
Scrapes VK user's photos
Stars: ✭ 42 (+147.06%)
Mutual labels:  vk, vkontakte, vkontakte-api, vk-api
vkListr
Скачивание списка Участников сообщества ВКонтакте
Stars: ✭ 14 (-17.65%)
Mutual labels:  vk, vkontakte, vkontakte-api, vkapi
vk
ВКонтакте Social Network SDK
Stars: ✭ 18 (+5.88%)
Mutual labels:  vk, vkontakte, vkontakte-api, vkontakte-client
Vk api
Модуль для создания скриптов для ВКонтакте | vk.com API wrapper
Stars: ✭ 1,070 (+6194.12%)
Mutual labels:  vk, vkontakte, api-wrapper, vk-api
Sketal
Бот для ВКонтакте. Беседы / группы / развлечения.
Stars: ✭ 119 (+600%)
Mutual labels:  vk, vkontakte, vk-api
VKAudioPlayer
VK Audio Player on Delphi
Stars: ✭ 16 (-5.88%)
Mutual labels:  vk, vkontakte, vkontakte-api
vk-mini-app-boilerplate
Стартовый кит для создания сервиса на платформе VK Mini Apps с использованием React + Redux
Stars: ✭ 61 (+258.82%)
Mutual labels:  vk, vkontakte, vk-api
Vk To Telegram Bot
Bot for auto-reposting posts from VK to Telegram channel
Stars: ✭ 103 (+505.88%)
Mutual labels:  vk, vkontakte, vk-api
Vkb
Bot for vk.com competitions
Stars: ✭ 24 (+41.18%)
Mutual labels:  vk, vkontakte, vk-api
Vk Api Schema
JSON Schema of VK API
Stars: ✭ 158 (+829.41%)
Mutual labels:  vk, vkontakte, vk-api
Vkrss
Generates RSS feed of opened/closed vk.com wall or global searched opened posts. Features: post filtering (include/exclude by regexp and/or by owner type), ads skipping, automatic title generation, hash-tags extraction as RSS categories, initial author extraction, HTML formatting
Stars: ✭ 59 (+247.06%)
Mutual labels:  vk, vkontakte, vk-api
Swiftyvk
Easy and powerful way to interact with VK API for iOS and macOS
Stars: ✭ 247 (+1352.94%)
Mutual labels:  vk, vkontakte, vk-api
Vk.py
Extremely-fast, easy-to-use, [not] ready for production. The asyncio based library for Python and Humans written to be efficient and reliable. [Unmaintained]
Stars: ✭ 38 (+123.53%)
Mutual labels:  vk, vkontakte, vk-api
vk-spammer
Спаммер сообщений для вк
Stars: ✭ 47 (+176.47%)
Mutual labels:  vk, vkontakte, vk-api
easyvk-go
Simple way to work with VK API
Stars: ✭ 47 (+176.47%)
Mutual labels:  vk, vkontakte, vk-api
Node Vk Bot Api
🤖 VK bot framework for Node.js, based on Bots Long Poll API and Callback API.
Stars: ✭ 195 (+1047.06%)
Mutual labels:  vk, vkontakte, vk-api
Vk Requests
vk.com requests for humans. API library for vk.com
Stars: ✭ 162 (+852.94%)
Mutual labels:  vk, vkontakte, vk-api

py-vkontakte — Python client for API vk.com

Build codecov Total alerts
Package GitHub release Solid Solid

Table of contents

Install

pip install py-vkontakte

First start

>>> import vk
>>> api = vk.Api('YOUR_TOKEN')

Method

User

# Single user
>>> user = api.get_user('durov')

# Many user
>>> user_items = api.get_users([1, 'sgaynetdinov'])  # Return generator
>>> [user.id for user in user_items]
[1, 23768217]

# User object
>>> user.id  # 1
>>> user.first_name  # 'Павел'
>>> user.last_name  # 'Дуров'
>>> user.maiden_name  # None
>>> user.nickname  # ''
>>> user.bdate  # '10.10.1984'
>>> user.sex  # 'male'
>>> user.status  # '道德經'
>>> user.site  # 'http://t.me/durov'
>>> user.relation  # None
>>> user.relation_partner  # None
>>> user.facebook  # '501012028'
>>> user.skype  # None
>>> user.twitter  # 'durov'
>>> user.livejournal  # None
>>> user.instagram  # 'durov'
>>> user.is_verified  # True
>>> user.is_trending  # False
>>> user.domain  # 'durov'
>>> user.screen_name  # 'durov'
>>> user.last_seen  # datetime.datetime
>>> user.platform  # 'web (vk.com)'
>>> user.is_deactivated  # False
>>> user.is_deleted  # False
>>> user.is_banned  # False
>>> user.can_write_private_message  # False
>>> user.is_friend  # False

>>> user.get_about()
>>> user.get_activities()
>>> user.get_books()
>>> user.get_career()
>>> user.get_games()
>>> user.get_movies()
>>> user.get_music()
>>> user.get_quotes()
>>> user.get_tv()

UserCareer

# Get user career data
>>> career = user.get_career()

# Career object
>>> career[0].group
>>> career[0].company
>>> career[0].country
>>> career[0].city
>>> career[0].city_name
>>> career[0].start
>>> career[0].end
>>> career[0].position

Group

# Single group
>>> group = api.get_group('devclub')

# Checking a user is a member of a current group
>>> user = api.get_user('durov')
>>> user in group  # or user.id in group

>>> user_items = [user for user in group.get_members()] # Get group members
>>> user_id_items = [user_id for user_id in group.get_members_only_id()] # Get only group members ID

# Many group
>>> groups_items = api.get_groups([1, 'devclub'])  # Return generator
>>> [group for group in groups_items]
[<Group: apiclub>, <Group: devclub>]

Examples

>>> import vk
>>> api = vk.Api('YOUR_TOKEN')
>>> group = api.get_group('devclub')
>>> user_id_items = []
>>> for user in group.get_members():
...     if user.is_friend and user.is_online:
...     	user_id_items.append(user.id)

Run tests

pip install -r requirements-dev.txt
pytest

Publish new release in PyPI

  • Edit field version in file setup.py
  • Create new release from github.com
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].