/xkcd-vk

Primary LanguagePython

Post random XKCD comics on VK group wall

This project is a simple command line tool for fetching XKCD comics and posting them to your VK community wall.

Features

  • Download random XKCD comics image and title
  • Publish it as VK community wall post
  • Comics picture will be deleted after posting.

Setup

  1. Clone project
git clone https://github.com/gennadis/xkcd-vk.git
cd xkcd-vk
  1. Create virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Rename .env.example to .env and place your secrets accordingly
VK_CLIENT_ID=0123456789
VK_TOKEN=place_your_token_here
VK_GROUP_ID=0123456789
  1. Run
python main.py