Giter Club home page Giter Club logo

vkstalk's Introduction

####VKStalk - vk.com scraper ######v5.0.0 BETA

Python console application. Scraps a VK user's public information. When running it displays in console:

  • User online/offline (if offline, it shows last seen time)
  • User is using mobile client
  • User status (OR current music track if available)
  • User data updates (any updates to user data, e.g. profile photo, nr. of wallposts)

#####Sample console output

=======| VKStalk ver. 5.0.0 BETA |=======

Launched on 08-November-2015 at 22:15
User ID: 45156687
User Name: Alexey Dvorak
Logs written: 0

==============| LATEST LOG |==============

>>> Checked on 2015-11-08 at 22:15:30 <<<

Date: 08-11-2015. Time: 19:09:20
Alexey Dvorak -- last seen yesterday at 03:49 [Mobile]
Status: it was all about cookies

==========================================

#####Setup

  1. Clone or download this repo
  2. Start a virtualenv within root directory
  3. Activate virtualenv
  4. Install requirements pip install -r requirements/base.txt
  5. In src/config. Make a copy of sample_secrets.py and rename it to secrets.py
  6. In src/config/secrets.py fill your database information. (By default it uses postgres, but you can try any other database, see this)
  7. In src/config/settings.py set your timezone CLIENT_TZ
  8. Start the app python main.py USER_VK_ID

#####Notes

  • You can go ahead and play with settings in src/config/settings.py.
    • Of more interest could be: DATA_FETCH_INTERVAL, MAX_CONNECTION_ATTEMPTS, CONNECTION_TIMEOUT, CONSOLE_LOG_TEMPLATE
  • To see accepted CLI arguments run python main.py -h
  • To get the summary on a user run python main.py USER_VK_ID --summary. By default it will generate the summary for the past week and write it to a file in PROJECT_ROOT/summaries and also print it to console. This behaviour can be changed using CLI arguments.

#####Currently it parses the following information

  • User data
    • name
    • birthday
    • photo
    • hometown
    • site
    • instagram
    • facebook
    • twitter
    • skype
    • phone
    • university
    • studied_at
    • wallposts
    • photos
    • videos
    • followers
    • communities
    • noteworthy_pages
    • current_city
    • info_1
    • info_2
    • info_3
  • Activity
    • is_online
    • is_mobile
    • status
    • last_visit_lt_an_hour_ago
    • last_visit

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.