Coder Social home page Coder Social logo

vk_checker's Introduction

vk_checker

Description:

Vk checker module notifies you about changing status of a person in vk.com social network using messages.

Requirements:

  • Python 3
  • Heroku account(it's free)
  • Pastebin account(it's free too)

Setting up:

  • Create a new standalone app at vk.com/dev
  • Generate access_token:
    • Take the following link, Replace YOUR_APP_ID by your actual app id from vk.com/dev and then open it in your browser. https://oauth.vk.com/authorize?client_id=YOUR_APP_ID&scope=messages,offline&redirect_uri=http://api.vk.com/blank.html&display=page&response_type=token
    • Grant access by pressing blue button, blank page with text "Do not copy address" should appear.
    • Extract access_token and keep it for a while. DO NOT SEND IT TO ANYONE.
  • Create new paste at Pastebin with your account and remember the link to raw paste data.
  • In Heroku create new python app, and deploy vk_checker, more info: https://devcenter.heroku.com/categories/deployment
  • Add config vars:
    • Go to Settings > Config Variables > Reveal config vars
    • Add following vars:
      • access_token = access_token_you_get_before
      • app_id = your_app_id
      • listener = id_of_person_who_will_be_receiving_notification, numbers only, for example: listener = 12345
      • target = id_of_person_to_watch_status, this should be in same format as listener
      • captcha_solution_url = url_to_paste_raw_data, for example: captcha_solution_url = http://pastebin.com/raw/abcde
  • Running:
    • In Heroku open your app logs(in top right corner click More > View logs)
    • Open your paste at Pastebin and click edit
    • In another browser tab open page Resources on Heroku
    • Start(restart) 'worker'
    • Check logs until message 'Captcha img available at URL' will appear, if it will not appear in 2 minutes, then skip following steps.
    • Quickly follow the link, solve the captcha and put the answer in your paste, don't forget to save.
    • After 60 seconds script will try to get captcha solution from paste.
    • In short time listener should receive a message about status.

Questions:

Should i use cloud?

The script was designed for this purposes, clouds give opportunity to run script 24/7, not like on your pc. But if you want to, feel free to rewrite script to launch it on your own pc, it requires python module named vk.

Any troubles?

Just ask me any way you want

vk_checker's People

Watchers

James Cloos avatar Denis Mukhametov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.