Skip to content

Konard/vk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, 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.

  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

  1. 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
    
  2. 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.

  3. Put your token at access-token file with no additional whitespace:

    echo "5c6a04c2805acbe79ed02c4e428d9d9a2054decb432f76b6532b3cdca5219059510679444396bead857ff" > access-token
    

About

VK automation for personal auditory growth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published