VK automation for personal auditory growth.
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 your own backend application, or please do not use app with 7907795 id.
-
Install prerequisites:
sudo apt install curl jq
-
Install npm:
sudo apt install npm
or using nvm.
-
Install selenium (for automatic token refreshing):
Without nvm:
sudo npm install -g selenium-side-runner
With nvm:
npm install -g selenium-side-runner
-
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.
-
This step is optional. Put your credentials in
email
andpass
files (required to use automatic token refreshing):echo "top-secret-password" > pass echo "user@gmail.com" > email
-
Receive your token:
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. -
Put your token at
access-token
file with no additional whitespace:echo "5c6a04c2805acbe79ed02c4e428d9d9a2054decb432f76b6532b3cdca5219059510679444396bead857ff" > access-token