Skip to content

Commit

Permalink
Merge pull request nishanthvijayan#32 from TheCapedBaldy/master
Browse files Browse the repository at this point in the history
Update Codechef scapper to work with markup changes of Codechef
  • Loading branch information
Nishanth Vijayan committed May 20, 2016
2 parents dbc4464 + 096eb56 commit 4d03e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]:
Expand Down

0 comments on commit 4d03e73

Please sign in to comment.