Last active
December 9, 2018 17:55
-
-
Save mehranz/eade1d9cd98b887e1e2a6d3ac5dd0827 to your computer and use it in GitHub Desktop.
a simple script to extract mp3 links from a webpage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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