parses links from table