oops
This commit is contained in:
parent
b7716a47ac
commit
be2a88d529
1 changed files with 6 additions and 2 deletions
8
main.py
8
main.py
|
|
@ -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:")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue