Skip to main content

A Python library for collecting data from VK (VKontakte) social network

Project description

VK Data Collector

A Python library for collecting data from VK (VKontakte) social network. Allows you to gather posts, comments, and group information from public VK walls.

Features

  • Collect posts from public walls (groups and users)
  • Collect posts up to a specific date
  • Collect comments for posts
  • Collect group information
  • Simple and intuitive API
  • Data saved in JSON format

Installation

pip install vk-data-collector

Quick Start

from vk_data_collector import create_collector

# Initialize with your VK API token
collector = create_collector("your_vk_service_token_here")

# List of VK walls to collect from
# Can be found in URL: https://vk.com/wall_name
walls = ["group_name", "public_wall_name"]

# Collect all posts
saved_files = collector.collect_all_posts(walls, "output/posts")

# Collect posts up to a specific date (YYYY-MM-DD)
saved_files_to_date = collector.collect_posts_to_date(walls, "2024-01-01", "output/posts_to_date")

# Collect comments for the posts
collector.collect_comments_for_posts(saved_files, "output/comments")

# Collect group information
collector.collect_groups(walls, "output/groups")

Requirements

License

MIT License

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_data_collector-0.2.4.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vk_data_collector-0.2.4-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file vk_data_collector-0.2.4.tar.gz.

File metadata

  • Download URL: vk_data_collector-0.2.4.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for vk_data_collector-0.2.4.tar.gz
Algorithm Hash digest
SHA256 8ad575b718abc5a8b08013b692a91a1999ceaf6c40ef632480fb453661ff1295
MD5 743341220714fae555f6697da56d8827
BLAKE2b-256 5532aa33dfbc1256302854024f8d0375eebdf30576d7854851595f76909431e0

See more details on using hashes here.

File details

Details for the file vk_data_collector-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for vk_data_collector-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa6c3c08d5440abfb9d4a0e8f244b8ffe4e439c70dbf06f2f380cd2365e9f39
MD5 6e07cac4c99dbb24bfb47d0c9a51620e
BLAKE2b-256 ccf344d9b0347cdd7ac3e1251d7022fc6c8a06a50ded1452b2ee5a724788baba

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