/poster

Create post with image on several popular social platforms.

Primary LanguagePython

Social platform posting

Create post with image on vary of most popular social platforms.

Requirements

This project is built in docker container. Learn more about docker at docker and docker-compose

Usage

Program will create posts with image and text taken from Google Sheets for every listed social platform: vk, telegram and facebook. Program will make a publications according to schedule in the sheet.

First of all, please make a copy of this sheet (Data will be taken from your own copy of that sheet).

You need to create a project at Google cloud and enable Google Sheets and Google Drive API for this project. Then create Google Service Account for your Google project and save credentials in directory with code file. Provide name of file with credentials in .env file.

Create environment.env file and store your account credentials for vk, telegram and facebook.

Example of environment.env (as .env.example) file provided.

For VK it's required to provide:

  • Vk login
  • Vk app id
  • Vk token
  • Vk album (album in group where photo will be stored)
  • Vk group

For telegram you have to register bot and create a new channel and then provide:

  • Telegram token
  • Telegram chat id

For facebook:

  • Facebook group id
  • Token for Facebook Graph API

Run!

docker-compose -f docker-compose-dev.yml build
docker-compose -f docker-compose-dev.yml up