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
All checks were successful
Build and Run VSTU Schedule Parser / build_and_run (push) Successful in 18s
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user