Python script at data_gathering.py asks for your vk credentials and for id of person you want to track online time for. Then it creates a folder and starts .csv file with all info about targer user and his friends online time, platform they used and last seen value registered by vk servers.
nkorobkov/vk-online-monitoring
set of scripts to gather data about users activity and present it
Python