Skip to content

MrSabin/API_6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Goal of this script to achieve random comix from xkcd and post it to specified VK group.

Installation

Python should be already installed.

  1. Download this repo
  2. Run python pip install -r requirements.txt to install all dependencies.

Before run

  1. Authorize on VK
  2. Create your group (you can do it here) or use existing
  3. Create your app on VK Dev, use standalone option
  4. Acquire client_id of your app by clicking Edit in app page. client_id will be in address bar
  5. Acquire personal token following this guide
  6. Acquire your group_id, this will help
  7. Create .env file in repo directory, and write all gathered info in there, like:
VK_GROUP_ID="your_group_id"
VK_ACCESS_TOKEN="your_token"

Example of file you will find in repo, feel free to use it

Run script

Now you can run script by command:

python main.py

Project goals

The code is written for educational purposes on online-course for web-developers dvmn.org

Releases

No releases published

Packages

No packages published

Languages