Skip to content

Commit af7bab1

Browse files
committed
fix retriving user's name issue in codechef
this resolves #22
1 parent a325cb8 commit af7bab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: details_soup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def problems_solved_get():
147147

148148
def user_details_get():
149149
header_containers = soup.find_all('header')
150-
name = header_containers[1].find('h2').text
150+
name = header_containers[1].find('h1', class_="h2-style").text
151151

152152
user_details_section = soup.find('section', class_='user-details')
153153
user_details_list = user_details_section.find_all('li')

0 commit comments

Comments
 (0)