grabs all the links on a given page and does something (echo) with them