msenturk
11/17/2014 - 12:21 PM

Get urls from an html page in linux

Get urls from an html page in linux

wget -O - http://stackoverflow.com | \
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | \
sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//'