This commit is contained in:
bMorgan01 2022-09-25 13:38:50 -06:00
parent b7716a47ac
commit be2a88d529

View file

@ -90,7 +90,11 @@ def main():
testedLinks = [] testedLinks = []
for key in pages.keys(): for key in pages.keys():
testedLinks += pages[key] + [key] testedLinks += [key]
if type(pages[key]) != HTTPError:
testedLinks += pages[key]
testedLinks = list(set(testedLinks)) testedLinks = list(set(testedLinks))
print(f"Tested {len(testedLinks)} links.") print(f"Tested {len(testedLinks)} links.")
@ -106,7 +110,7 @@ def main():
if href == link: if href == link:
found.append(search_link) found.append(search_link)
print('\n', ''.join(['='] * 100)) print('\n' + ''.join(['='] * 100))
print(link, pages[link].status, pages[link].reason) print(link, pages[link].status, pages[link].reason)
print(''.join(['-'] * 100)) print(''.join(['-'] * 100))
print("Found in:") print("Found in:")