The link checking code is duplicated. It should be consolidated into a single function that gets the entered URLs from the dump