We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f563e commit 7d92ec2Copy full SHA for 7d92ec2
1 file changed
user_scanner/user_scan/dev/hackerearth.py
@@ -2,7 +2,7 @@
2
3
def validate_hackerearth(user: str) -> Result:
4
url = f"https://www.hackerearth.com/@{user}"
5
- show_url = "https://www.hackerearth.com"
+ show_url = url
6
7
headers = {
8
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
@@ -13,11 +13,11 @@ def validate_hackerearth(user: str) -> Result:
13
14
# HackerEarth returns 404 for non-existent users and 200 for existing users.
15
return status_validate(
16
- url,
17
- available=404,
18
- taken=200,
19
- show_url=show_url,
20
- headers=headers,
+ url,
+ available=404,
+ taken=200,
+ show_url=show_url,
+ headers=headers,
21
follow_redirects=True,
22
timeout=10.0
23
)
0 commit comments