説明なし

Universai fd10e69ed0 LICENSE 2 ヶ月 前
outdated 75312b5ee3 init 2 ヶ月 前
.gitignore 75312b5ee3 init 2 ヶ月 前
LICENSE fd10e69ed0 LICENSE 2 ヶ月 前
README.md fd10e69ed0 LICENSE 2 ヶ月 前
config.sample.json 75312b5ee3 init 2 ヶ月 前
main.py 75312b5ee3 init 2 ヶ月 前
vcollector.py 75312b5ee3 init 2 ヶ月 前
vconfig.py 75312b5ee3 init 2 ヶ月 前
venigma.py 75312b5ee3 init 2 ヶ月 前
venigma_internal.py 75312b5ee3 init 2 ヶ月 前
vfetcher.py 75312b5ee3 init 2 ヶ月 前
vobjects.py 75312b5ee3 init 2 ヶ月 前

README.md

VK music downloader

Warning! This program requires session cookies manually provided from external sites. These cookies contain sensitive authentication tokens that could allow access to your accounts. Never share your cookies with untrusted parties. Use this tool at your own risk.

Usage

Fill in config.sample.json and rename it to config.json. You can acquire required data from network tab in browser developer tools:

  1. Open developer tools.
  2. Start playing any song.
  3. Filter by get_audio_ids_by_source (for audio_list_payload) and reload_audios (for audio_data_payload).
  4. RMB -> copy -> copy as fetch (node.js).
  5. Paste arguments (payload) into config file.
  6. vk_id may be acquired from main audio page url: https://vk.com/audios<vk_id>.

Then just run:

python main.py

Known issues

  1. It may (and likely will) fail on Windows: .m3u8 files use URL-compatible names for partials, like seg-00?siren=1. Use Unix or WSL.
  2. Script does not handle errors. Use shell loops.