Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contest info updated #402

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading