diff --git a/backend/route.py b/backend/route.py index f1c2742..b897194 100644 --- a/backend/route.py +++ b/backend/route.py @@ -42,7 +42,7 @@ def fetch_codechef(): page = urlopen("http://www.codechef.com/contests") soup = BeautifulSoup(page,"html.parser") - statusdiv = soup.findAll("div",attrs = {"class":"table-questions"}) + statusdiv = soup.findAll("table",attrs = {"class":"dataTable"}) upcoming_contests = statusdiv[1].findAll("tr") if(len(upcoming_contests) <100): for upcoming_contest in upcoming_contests[1:]: