{"id":15017603,"url":"https://github.com/vodka2/vkaudiotoken-python","last_synced_at":"2026-03-07T15:34:56.557Z","repository":{"id":41965562,"uuid":"281463893","full_name":"vodka2/vkaudiotoken-python","owner":"vodka2","description":"Library that obtains VK tokens that work for VK audio API. Библиотека для получения токена VK, подходящего для Audio API","archived":false,"fork":false,"pushed_at":"2022-04-21T20:07:08.000Z","size":20,"stargazers_count":44,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-30T16:22:36.719Z","etag":null,"topics":["audio","music","vk","vkontakte"],"latest_commit_sha":null,"homepage":"https://vodka2.github.io/vk-audio-token","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vodka2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-21T17:38:21.000Z","updated_at":"2025-11-25T11:30:28.000Z","dependencies_parsed_at":"2022-08-12T00:50:28.638Z","dependency_job_id":null,"html_url":"https://github.com/vodka2/vkaudiotoken-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vodka2/vkaudiotoken-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodka2%2Fvkaudiotoken-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodka2%2Fvkaudiotoken-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodka2%2Fvkaudiotoken-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodka2%2Fvkaudiotoken-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vodka2","download_url":"https://codeload.github.com/vodka2/vkaudiotoken-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vodka2%2Fvkaudiotoken-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["audio","music","vk","vkontakte"],"created_at":"2024-09-24T19:50:44.270Z","updated_at":"2026-03-07T15:34:56.537Z","avatar_url":"https://github.com/vodka2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vkaudiotoken-python\n\nPort of [vodka2/vk-audio-token](https://github.com/vodka2/vk-audio-token), originally written in PHP, to Python. This package obtains tokens, that work for VK audio API. Actually there are two versions of the API, one for Kate Mobile, and one for official VK client, each requires a different token.\n\n`vkaudiotoken` is compatible with Python 2.7 and \u003e=3.5. `requests` package is required.\n\n```\npip install vkaudiotoken\n```\nYou can also run examples in the `examples` directory without installing the package\n\n## Getting tokens\n\nThe simplest example:\n\n```python\nfrom vkaudiotoken import get_kate_token, get_vk_official_token\n\nlogin = '+71234567890' # your vk login, e-mail or phone number\npassword = '12345' # your vk password\n\n# print tokens and corresponding user-agent headers\nprint(get_kate_token(login, password))\nprint(get_vk_official_token(login, password))\n```\n\nMore advanced examples are in the `example` directory. See also examples and README in [vodka2/vk-audio-token](https://github.com/vodka2/vk-audio-token/tree/master/src/examples) repository.\n\n## Using tokens\n\nThe simplest example:\n\n```python\nimport requests\n\ntoken = '...'\nuser_agent = '...'\n\nsess = requests.session()\nsess.headers.update({'User-Agent': user_agent})\n\nsess.get(\n    \"https://api.vk.com/method/audio.getById\",\n    params=[('access_token', token),\n            ('audios', '371745461_456289486'),\n            ('v', '5.95')]\n)\n```\n\nSee examples in the `example/usage` directory and in [vodka2/vk-audio-token](https://github.com/vodka2/vk-audio-token/tree/master/src/examples/usage). Some VK API documentation, still in progress, is available at [vodka2.github.io/vk-audio-token/](https://vodka2.github.io/vk-audio-token/).\n\n## 2FA\n\nTwo factor authorization with SMS is supported, however VK sometimes does not send it. If you don't receive an SMS, you can use `TwoFAHelper` class to force resending. \n\nIt is also possible to create separate passwords in VK account settings and use them instead of your account password.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvodka2%2Fvkaudiotoken-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvodka2%2Fvkaudiotoken-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvodka2%2Fvkaudiotoken-python/lists"}