{"id":17572421,"url":"https://github.com/n0str/vk-dumper","last_synced_at":"2025-03-29T15:12:53.807Z","repository":{"id":50202103,"uuid":"97328290","full_name":"n0str/vk-dumper","owner":"n0str","description":"Simple and dummy script for vk messages dumping via VK API","archived":false,"fork":false,"pushed_at":"2022-12-08T00:02:05.000Z","size":5,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T15:49:52.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n0str.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-15T16:29:49.000Z","updated_at":"2017-07-15T16:53:19.000Z","dependencies_parsed_at":"2023-01-25T01:15:49.603Z","dependency_job_id":null,"html_url":"https://github.com/n0str/vk-dumper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0str%2Fvk-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0str%2Fvk-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0str%2Fvk-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0str%2Fvk-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n0str","download_url":"https://codeload.github.com/n0str/vk-dumper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200323,"owners_count":20739566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-21T19:04:39.118Z","updated_at":"2025-03-29T15:12:53.770Z","avatar_url":"https://github.com/n0str.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# General\r\n\r\nScript dumps all your VK messages. It is so dummy, that's why you have to perform some preparations to use it.\r\n\r\n1. Install python3 with 'requests' module. Or run `pip install -r requirements.txt`\r\n2. Install mongo and provide connection settings to the line: client = MongoClient('localhost', 27017)\r\nYou can also run it with docker by : `docker run --name vk-dumper-mongo -d -p 27017:27017 -v /path/to/empty/directory/for/mongo:/tmp/mongo -e DATA_DIR=/tmp/mongo mongo`\r\n3. Create Standalone application in VK and copy App-id from settings.\r\n4. Obtain token manually via : `https://oauth.vk.com/authorize?client_id=\u003cAPP_ID\u003e\u0026display=page\u0026redirect_uri=https://oauth.vk.com/blank.html\u0026scope=messages\u0026response_type=token\u0026v=5.67\u0026state=1`\r\nYou can see access token in your browser's address field after #.\r\n5. Copy access token to the config.py file (rename config.py.sample into config.py).\r\n6. Run `python main.py`\r\n7. Don't forget to export results with : \r\n- `mongoexport --db vk --collection messages  --out messages.json`\r\n- `mongoexport --db vk --collection users  --out users.json`\r\n- `mongoexport --db vk --collection docs  --out docs.json`\r\n- `mongoexport --db vk --collection photos  --out photos.json`\r\n- `mongoexport --db vk --collection links  --out links.json`\r\n\r\nEnjoy.\r\n\r\n# Setup\r\n\r\nChange hardcoded parameter out=1 to out=0 if you wanna get incoming messages.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0str%2Fvk-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0str%2Fvk-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0str%2Fvk-dumper/lists"}