Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/konard/vk

VK automation for personal auditory growth.
https://github.com/konard/vk

Last synced: 11 days ago
JSON representation

VK automation for personal auditory growth.

Awesome Lists containing this project

README

        

# vk
VK automation for personal auditory growth.

# Warnings

DO NOT TRUST THIS SOFTWARE.

READ THE CODE.

BE CAREFUL TO
NOT UPLOAD YOUR TOKENS OR CREDENTIALS
TO THE REPOSITORY/PULL REQUEST.
CHECK GITIGNORE FILE.

# Setup

1. Setup your own [backend application](Application/README.md), or _please do not_ use app with 7907795 id.
2. Install prerequisites:
```
sudo apt install curl jq
```
3. Install npm:
```
sudo apt install npm
```
or using [nvm](https://github.com/nvm-sh/nvm).
4. Install selenium (for automatic token refreshing):

Without nvm:
```
sudo npm install -g selenium-side-runner
```
With nvm:
```
npm install -g selenium-side-runner
```
5. Install Chrome driver (other browsers may be also used):

Without nvm:
```
sudo npm install -g chromedriver --unsafe-perm=true --allow-root
```
With nvm:
```
npm install -g chromedriver --unsafe-perm=true --allow-root
```
Execute this command again for a new major version of the Chrome browser.

# Use

0. This step is _optional_. Put your credentials in `email` and `pass` files (required to use automatic token refreshing):
```
echo "top-secret-password" > pass
echo "[email protected]" > email
```
1. Receive your token:

https://oauth.vk.com/authorize?client_id=7907795&scope=friends&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1

7907795 is an id of VK backend app where main logic is located. _Please use_ your app id here.

Token works for 24 hours, it has access only to `friends` API methods.
2. Put your token at `access-token` file with no additional whitespace:
```
echo "5c6a04c2805acbe79ed02c4e428d9d9a2054decb432f76b6532b3cdca5219059510679444396bead857ff" > access-token
```