The script for locally saving and incremental updating private and groupchat messages from social service vk.com.
- python 3
How to use
Configure and first run:
- Open this link in a browser and confirm permissions for the 'messages backup' application, in fact that is just obtaining an access token with certain rights.
user_idvalues from URL in an address bar and put it to the
config.json.exampleas the format reference.
The script will generate
storage directory with json dump of gotten data and
chatlogs directory with formatted chat logs (both in a current working directory).
./vk_messages_backup.pyin the same directory as before.
The script used straightforward approaches and algorithms, so don't wonder if it consume lots or memory and CPU time for processing and formatting the messages’ dump. The processing of some corner cases are not implemented properly.
Public domain. You free to use it as you need without any restrictions. No guarantees provided.