the links will all be written into a txt file