diff --git a/data/contests.json b/data/contests.json index 50cff69..b06524a 100644 --- a/data/contests.json +++ b/data/contests.json @@ -1 +1 @@ -{"weekly-contest-388": {"title": "Weekly Contest 388", "start_time": 1710037800, "contest_duration": 5400}, "biweekly-contest-126": {"title": "Biweekly Contest 126", "start_time": 1710599400, "contest_duration": 5400}} \ No newline at end of file +{"weekly-contest-389": {"title": "Weekly Contest 389", "start_time": 1710642600, "contest_duration": 5400}, "biweekly-contest-126": {"title": "Biweekly Contest 126", "start_time": 1710599400, "contest_duration": 5400}} \ No newline at end of file diff --git a/scripts/contest.py b/scripts/contest.py index f2392a3..62f0f27 100644 --- a/scripts/contest.py +++ b/scripts/contest.py @@ -12,8 +12,11 @@ def __init__(self, contest_info_path): # noinspection PyMethodMayBeStatic def get_all_urls(self): + time.sleep(5) reqs = requests.get(url=CONFIG.CONTEST_ROOT_URL) + time.sleep(10) b_soup = BeautifulSoup(reqs.text, 'html.parser') + time.sleep(5) all_urls = [] for href in b_soup.find_all('a'): all_urls.append(href.get('href'))