Skip to content

Commit d035680

Browse files
committed
fix error on login with outdated version in user-agent
A long term fix would be to add the user-agent to the input params perhaps.
1 parent e2488b5 commit d035680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hsc/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class Crawler:
1111
base_url = 'https://www.hackerrank.com/'
12-
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0) Gecko/20100101 Firefox/42.0'
12+
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63'
1313
login_url = base_url + 'auth/login'
1414
submissions_url = base_url + 'rest/contests/master/submissions/?offset={}&limit={}'
1515
challenge_url = base_url + 'rest/contests/master/challenges/{}/submissions/{}'

0 commit comments

Comments
 (0)