added a limit to the number of tests run

This commit is contained in:
Benton Edmondson 2022-06-06 22:48:36 -04:00
parent c2755dd288
commit 9114ef63c1

View file

@ -45,6 +45,9 @@ for a_tag in soup.find_all('a'):
links.append(a_tag.get("href")) links.append(a_tag.get("href"))
if len(links) >= 10:
break
for i, link in enumerate(links): for i, link in enumerate(links):
i = str(i) i = str(i)
print("Testing URL #" + i + ":\n" + link) print("Testing URL #" + i + ":\n" + link)