print count of tested links
This commit is contained in:
parent
75d88ae1b1
commit
c6e438348c
1 changed files with 8 additions and 0 deletions
8
main.py
8
main.py
|
|
@ -86,6 +86,14 @@ def main():
|
|||
print("Crawling site...")
|
||||
pages = spider(target, ignores)
|
||||
|
||||
print(f"Crawled {len(pages)} pages.\n")
|
||||
|
||||
testedLinks = []
|
||||
for key in pages.keys():
|
||||
testedLinks += pages[key]
|
||||
testedLinks = list(set(testedLinks))
|
||||
print(f"Tested {len(testedLinks)} links.")
|
||||
|
||||
count = 0
|
||||
for link in pages.keys():
|
||||
if type(pages[link]) == HTTPError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue