launch fixes and more small-fixes of launcher behavior
All checks were successful
Build and Run VSTU Schedule Parser / build_and_run (push) Successful in 18s

This commit is contained in:
2026-04-04 00:02:01 +03:00
parent fe9d02392f
commit 3b15cd5037
3 changed files with 28 additions and 14 deletions

View File

@@ -1,7 +1,9 @@
# Copyright Stanislav Mironov
import random
import re
import time
from urllib.parse import urljoin
import requests
from requests.structures import CaseInsensitiveDict
@@ -56,6 +58,9 @@ def parse_links(facultets):
}
print("Found in vstu.ru: ", record)
EXCEL_LINKS.append(record)
st = random.randint(1, 10)/10
print(f"sleep {st}s")
time.sleep(st)
return sorted(EXCEL_LINKS, key=lambda x: x['url'])