How to extract links/urls from HTML with Sed
First download http://sed.sourceforge.net/grabbag/scripts/list_urls.sed.
Make the script executable with chmod:
chmod +x list_urls.sed
Now pipe the HTML to the script:
cat your.html | list_urls.sed
The output will be all URLs it finds...