diff --git a/scripts/test_urls.py b/scripts/test_urls.py index 7484776ea217a1d54a258efd3b1ebe5c5e914b3e..8975e90c6b2634a2f1006d9c7eb3e6bf448175b8 100755 --- a/scripts/test_urls.py +++ b/scripts/test_urls.py @@ -11,7 +11,12 @@ import sys import traceback from urllib.parse import urlparse import urllib3 +import fnmatch +EXCLUDE = [ + "*://lavaphabbridge.apertis.org", # + "*://lavaphabbridge.apertis.org/*", # it's slooooooow +] def get_link(url): link = url.group("link") @@ -24,6 +29,10 @@ def get_link(url): url = url._replace(fragment="") link = url.geturl() + for exclude in EXCLUDE: + if fnmatch.fnmatch(link, exclude): + return + if not link in urls: urls.append(link)