Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/konard/vk
- Owner: Konard
- License: agpl-3.0
- Created: 2021-10-30T09:49:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T17:23:30.000Z (about 1 year ago)
- Last Synced: 2024-10-10T13:36:10.040Z (28 days ago)
- Language: Shell
- Size: 152 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```