Extract links from files