下载56k首🇷🇺歌曲

#!/bin/bash

for p in {1..1124}
do
  echo "====== $p ======"
  curl -sSL https://music.xn--41a.ws/page/$p/ |
    pup 'li.track json{}' |
      jq -r '.[] |
              (.["data-url_song"]+.["data-mp3"]) as $url |
                .children[] | select(.tag=="h2") |
                  {url: $url, artist: .children[0].children[0].text, title: .children[2].children[0].text} |
                    "\(.url)\n  dir=songs/\(.artist)\n  out=\(.title).mp3"' |
         ascii2uni -q -aQ |
           aria2c --allow-overwrite=false --auto-file-renaming=false --deferred-input -i- -x10 -q
done
###################
# DEBUG MESSAGE 1 #
###################

{
  "url": "https://music.xn--41a.ws/public/play_mp3.php?id=54657&hash=b4f0c3ebf2705e62a3526603554ac06597c37610bf32d4d0fae6ef6117b9f82d&artist=%D1%81%D1%83%D0%BB%D1%82%D0%B0%D0%BD-%D0%BB%D0%B0%D0%B3%D1%83%D1%87%D0%B5%D0%B2&title=%D0%B3%D0%BE%D1%80%D1%8C%D0%BA%D0%B8%D0%B9-%D0%B2%D0%BA%D1%83%D1%81",
  "artist": "Султан лагучев",
  "title": "Горький вкус"
}
{
  "url": "https://music.xn--41a.ws/public/play_mp3.php?id=54992&hash=8c55e456b3a90b0314d92d7c87e750064aee7dcfc4b46b958219f0fa59f69730&artist=ramil&title=%D0%B8%D0%B7-%D0%B7%D0%B0-%D1%82%D0%B5%D0%B1%D1%8F",
  "artist": "Ramil",
  "title": "Из за тебя"
}
{
  "url": "https://music.xn--41a.ws/public/play_mp3.php?id=55020&hash=3c7d68d15e02ea2858d0953c50ba806ea3a7e9f886502e572fa6fc7bd46197a6&artist=%D0%9A%D0%B0%D0%BD%D0%B3%D0%B8&title=%D0%B2%D0%BE%D0%B7%D1%8C%D0%BC%D0%B8-%D1%81%D0%B5%D1%80%D0%B4%D1%86%D0%B5-%D0%BC%D0%BE%D1%91",
  "artist": "Канги",
  "title": "Возьми сердце моё"
}
###################
# DEBUG MESSAGE 2 #
###################

https://music.xn--41a.ws/public/play_mp3.php?id=54657&hash=9e0e07c9fa08ac2ae2ba11757eddc498b3a8629167dde87c4b605cdcc480609f&artist=%D1%81%D1%83%D0%BB%D1%82%D0%B0%D0%BD-%D0%BB%D0%B0%D0%B3%D1%83%D1%87%D0%B5%D0%B2&title=%D0%B3%D0%BE%D1%80%D1%8C%D0%BA%D0%B8%D0%B9-%D0%B2%D0%BA%D1%83%D1%81
  dir=songs/Султан лагучев
  out=Горький вкус.mp3
https://music.xn--41a.ws/public/play_mp3.php?id=54992&hash=b7d53e80351e94862391acb115b6ed752f2cfae8c5772c19ecb49d0af28d4b26&artist=ramil&title=%D0%B8%D0%B7-%D0%B7%D0%B0-%D1%82%D0%B5%D0%B1%D1%8F
  dir=songs/Ramil
  out=Из за тебя.mp3
https://music.xn--41a.ws/public/play_mp3.php?id=55020&hash=5c77fb2f5d88b0f986b4231dc5024061f0d4ce9eeb3e1da9d33f07d8754c698a&artist=%D0%9A%D0%B0%D0%BD%D0%B3%D0%B8&title=%D0%B2%D0%BE%D0%B7%D1%8C%D0%BC%D0%B8-%D1%81%D0%B5%D1%80%D0%B4%D1%86%D0%B5-%D0%BC%D0%BE%D1%91
  dir=songs/Канги
  out=Возьми сердце моё.mp3
################
# FINAL RESULT #
################

$ tree -N songs
├── Ramil
│   └── Из за тебя.mp3
├── Канги
│   └── Возьми сердце моё.mp3
└── Султан лагучев
    └── Горький вкус.mp3

注意: url中的hash会失效