diff --git a/Codechef.py b/Codechef.py index 5c3c906..19eeba7 100644 --- a/Codechef.py +++ b/Codechef.py @@ -37,11 +37,9 @@ def partmatch(name): } Editorial = "http://discuss.codechef.com/problems/" response = urllib2.urlopen('https://www.codechef.com/problems/'+difficulty) - -data =response.read() start="https://www.codechef.com" j=0 -soup = BeautifulSoup(data) +soup = BeautifulSoup(response,'html.parser') # Gets question code for link in soup.find_all('tr', class_="problemrow"):