+
Skip to content

nymless/vk-data-collector

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载