Bot for Automatic Product Publishing from Website to VK Group

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Bot for Automatic Product Publishing from Website to VK Group
Medium
~3-5 business days
FAQ

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1262
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1171
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    874
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1094
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    831
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    851

Developing a Bot for Automatic Product Publishing from Website to VK Group

VKontakte remains a significant platform for sales in Russian-speaking segment. Bot automatically creates posts in VK group based on products from website catalog: uploads photo, generates text, adds link, and publishes — or schedules for delayed publication.

VK API for Publications

Uses wall.post method with pre-loaded photos:

import vk_api
from vk_api.upload import VkUpload
import httpx

class VKProductPublisher:
    def __init__(self, access_token: str, group_id: int):
        self.vk     = vk_api.VkApi(token=access_token)
        self.upload = VkUpload(self.vk)
        self.group_id = group_id

    async def publish(self, product: dict) -> int:
        # Upload first product image
        attachment = None
        if product.get('images'):
            image_url  = product['images'][0]['url']
            image_data = httpx.get(image_url).content

            # Upload photo to VK server
            photo = self.upload.photo_wall(
                photos=image_data,
                group_id=self.group_id
            )[0]
            attachment = f"photo{photo['owner_id']}_{photo['id']}"

        # Post text
        text = (
            f"{product['name']}\n\n"
            f"{product['short_description']}\n\n"
            f"💰 {product['price']:,.0f} ₽\n\n"
            f"🛒 Buy: {product['url']}\n\n"
            f"#{self.make_hashtags(product['categories'])}"
        )

        result = self.vk.method('wall.post', {
            'owner_id':     -self.group_id,
            'message':      text,
            'attachments':  attachment,
            'from_group':   1,
        })

        return result['post_id']

    def make_hashtags(self, categories: list) -> str:
        return ' '.join(f"#{c['slug'].replace('-', '_')}" for c in categories)

Scheduled Publishing

VK API supports delayed publication:

import time
from datetime import datetime, timedelta

publish_time = datetime.now() + timedelta(hours=2)

result = self.vk.method('wall.post', {
    'owner_id':     -self.group_id,
    'message':      text,
    'attachments':  attachment,
    'publish_date': int(publish_time.timestamp()),  # Unix timestamp
    'from_group':   1,
})

VK API Specifics

  • Access Token must have wall, photos, groups rights
  • Rate limits — no more than 50 posts per hour for one group
  • Photos are uploaded via special upload server, not direct URL
  • Group — negative group_id passed in owner_id

Timeline

Bot with schedule, photo upload, and queue: 3–5 business days.