Goal of this script to achieve random comix from xkcd and post it to specified VK group.
Python should be already installed.
- Download this repo
- Run
python pip install -r requirements.txt
to install all dependencies.
- Authorize on VK
- Create your group (you can do it here) or use existing
- Create your app on VK Dev, use
standalone
option - Acquire
client_id
of your app by clickingEdit
in app page.client_id
will be in address bar - Acquire personal token following this guide
- Acquire your group_id, this will help
- 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
Now you can run script by command:
python main.py
The code is written for educational purposes on online-course for web-developers dvmn.org