Extract ed2k links

Get ed2k links from an HTML page

First save the page to disk, e.g. page.html, and do:

grep -o 'ed2k://[^"]*' page.html''

Note you must use the correct quotes. Also, you might need to invert the quotes if the page uses older html (i.e. <a href='ed2k…'> is deprecated in newer HTML and should always be <a href=“ed2k…”>)


Last update: 29.09.2007