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 npmor using nvm.
-
Install selenium (for automatic token refreshing):
Without nvm:
sudo npm install -g selenium-side-runnerWith 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-rootWith nvm:
npm install -g chromedriver --unsafe-perm=true --allow-rootExecute this command again for a new major version of the Chrome browser.
-
This step is optional. Put your credentials in
emailandpassfiles (required to use automatic token refreshing):echo "top-secret-password" > pass echo "[email protected]" > 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
friendsAPI methods. -
Put your token at
access-tokenfile with no additional whitespace:echo "5c6a04c2805acbe79ed02c4e428d9d9a2054decb432f76b6532b3cdca5219059510679444396bead857ff" > access-token