Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Created June 28, 2015 19:02
Show Gist options
  • Save luqmaan/be74ca6648b0d86631c5 to your computer and use it in GitHub Desktop.
Save luqmaan/be74ca6648b0d86631c5 to your computer and use it in GitHub Desktop.
SONGS=(1099 1427 541 1426 270 479 265 413 268 269 267 266 263 262 261 260 259 258 257 256 255 254 253 252 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222)
# SONGS=(1099 )
for SONG_ID in ${SONGS[@]}; do
echo "hi $i"
URL=$(
curl "https://www.hive.co/downloads/page/35/popup/modal/?download_id=$SONG_ID" \
| grep "window.NEXT_URL" \
| grep -o -E "'http:.*'" \
| sed "s/'//g"
)
echo "$URL"
curl -v $URL > $SONG_ID.mp3
sleep 1
done
# https://www.hive.co/downloads/page/35/popup/modal/?download_id=222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment