Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexanderZharyuk/comics-poster
Script for posting comics to VK-group.
https://github.com/AlexanderZharyuk/comics-poster
api vk
Last synced: 19 days ago
JSON representation
Script for posting comics to VK-group.
- Host: GitHub
- URL: https://github.com/AlexanderZharyuk/comics-poster
- Owner: AlexanderZharyuk
- Created: 2022-07-21T11:34:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T12:43:36.000Z (about 2 years ago)
- Last Synced: 2024-07-30T21:00:11.076Z (3 months ago)
- Topics: api, vk
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# COMICS POSTER
Script for downloading a random comic from the site [XKCD](https://xkcd.com/) and posting it to [VK](https://vk.com/) group.
## Setting up your development environment
1. Install the required libraries:To do this, use the command:
```shell
pip install -r requirements.txt
```
2. Set up `.env` -file:Inside this file there should be variables with your secret data from the VK API:
```
VK_ACCESS_TOKEN=
GROUP_ID=
```Useful links:
1. To get [Access Token VK](https://vk.com/dev/implicit_flow_user)
2. To get [VK GROUP ID](https://regvk.com/id/)## Beginning of work
After you have set your environment variables, run the script with the following command:
```shell
python3 main.py
```
If no errors appear in the console, then the post with the comment is already in your public in VK, rather, look at it and like it!## Created with
* [VK API](https://vk.com/) - Social network
* [XKCD](https://xkcd.com/) - Comic site## Author
[Alexander Zharyuk](https://github.com/AlexanderZharyuk/)