Skip to content

Commit 7d92ec2

Browse files
committed
refactor: show_url=url to take the direct link of the user profile
1 parent c3f563e commit 7d92ec2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

user_scanner/user_scan/dev/hackerearth.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
def validate_hackerearth(user: str) -> Result:
44
url = f"https://www.hackerearth.com/@{user}"
5-
show_url = "https://www.hackerearth.com"
5+
show_url = url
66

77
headers = {
88
'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:
1313

1414
# HackerEarth returns 404 for non-existent users and 200 for existing users.
1515
return status_validate(
16-
url,
17-
available=404,
18-
taken=200,
19-
show_url=show_url,
20-
headers=headers,
16+
url,
17+
available=404,
18+
taken=200,
19+
show_url=show_url,
20+
headers=headers,
2121
follow_redirects=True,
2222
timeout=10.0
2323
)

0 commit comments

Comments
 (0)