Skip to content

Commit

Permalink
Contest info updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ssavi-ict committed Mar 11, 2024
1 parent 1ea6cff commit 9e92f7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/contests.json
Original file line number Diff line number Diff line change
@@ -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}}
{"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}}
3 changes: 3 additions & 0 deletions scripts/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 9e92f7d

Please sign in to comment.