extract information from a link