writes crawled links to file