Skip to content

Instantly share code, notes, and snippets.

@mehranz
Last active December 9, 2018 17:55
Show Gist options
  • Select an option

  • Save mehranz/eade1d9cd98b887e1e2a6d3ac5dd0827 to your computer and use it in GitHub Desktop.

Select an option

Save mehranz/eade1d9cd98b887e1e2a6d3ac5dd0827 to your computer and use it in GitHub Desktop.
a simple script to extract mp3 links from a webpage
#! /bin/bash
thread=$1
while IFS= read -r url ; do
echo "$url"
done < <(lynx -dump -listonly "$thread" | awk '/\.mp3$/ {print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment