Skip to content
Permalink
Browse files

yandex music search

  • Loading branch information...
l29ah committed Sep 1, 2019
1 parent 20637d8 commit 484f62a9e3b35d6ab624be528e6665b83648a764
Showing with 6 additions and 0 deletions.
  1. +2 −0 yandex.ru/music/search-albums
  2. +2 −0 yandex.ru/music/search-artists
  3. +2 −0 yandex.ru/music/search-tracks
@@ -0,0 +1,2 @@
#!/bin/bash
curl -sS "https://music.yandex.ru/search?text=$(echo -n "$1" | urlencode)&type=albums" | sed -ne 's#.*var Mu=\(.*\);</script><scri.*#\1#p' | jq -r '.pageData.result.albums.items[] | "https://music.yandex.ru/album/" + (.id | tostring) + "\t" + .title'
@@ -0,0 +1,2 @@
#!/bin/bash
curl -sS "https://music.yandex.ru/search?text=$(echo -n "$1" | urlencode)&type=artists" | sed -ne 's#.*var Mu=\(.*\);</script><scri.*#\1#p' | jq -r '.pageData.result.artists.items[] | "https://music.yandex.ru/artist/" + (.id | tostring) + "\t" + .name'
@@ -0,0 +1,2 @@
#!/bin/bash
curl -sS "https://music.yandex.ru/search?text=$(echo -n "$1" | urlencode)&type=tracks" | sed -ne 's#.*var Mu=\(.*\);</script><scri.*#\1#p' | jq -r '.pageData.result.tracks.items[] | "https://music.yandex.ru/album/" + (.albums[0].id | tostring) + "/track/" + (.id | tostring)'

0 comments on commit 484f62a

Please sign in to comment.
You can’t perform that action at this time.