Skip to content

Instantly share code, notes, and snippets.

@Oversan
Created July 20, 2016 08:47
Show Gist options
  • Select an option

  • Save Oversan/0d9f2a9f4c903226bd25700ec6fadf72 to your computer and use it in GitHub Desktop.

Select an option

Save Oversan/0d9f2a9f4c903226bd25700ec6fadf72 to your computer and use it in GitHub Desktop.
OE_download

На официальном сайте OE http://www.okeanelzy.com/ru/bezmezh/ в консольке:

jQuery.map($('audio'), function(item) {return location.hostname + $(item).attr('src')})

Пишем скрипт и сохраняем его в oe.sh:

#!/bin/bash

SONGS="www.okeanelzy.com/bez-mezh/01-LUBOV-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/02-NE-JDY-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/03-DZHERELO-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/04-SONCE-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/05-NAPYSHY-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/06-NETVOYA-VIYNA-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/07-EVEREST-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/08-HTOS-V-NEBO-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/09-DES-TAM-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/10-OSIN-MASTER-7.mp3
www.okeanelzy.com/bez-mezh/11-BEZ-MEZH-MASTER-7.mp3"

for song in $SONGS
do
  curl -o "${song##*\/}" $song
done

Выполняем:

mkdir OE && cd OE && sh ../oe.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment