fix fide rating history fetch script by allowing http(s)

This commit is contained in:
Allan Joseph
2026-03-01 19:35:23 +05:30
parent 65c818310f
commit 20b07a3cfa
+1 -1
View File
@@ -62,7 +62,7 @@ def get_xml_links(period):
# Regex matches: href="...zip"> XML </a>
link_pattern = re.compile(
r"href=['\"]?(http://ratings\.fide\.com/download/([a-zA-Z0-9_]+\.zip))['\"]?[^>]*>\s*XML\s*</a>",
r"href=['\"]?(https?://ratings\.fide\.com/download/([a-zA-Z0-9_]+\.zip))['\"]?[^>]*>\s*XML\s*</a>",
re.IGNORECASE
)