Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Wakatime Support to Sherlock #2320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vikranth3140
Copy link

@Vikranth3140 Vikranth3140 commented Oct 8, 2024

This PR closes #2319 by adding support for detecting usernames on Wakatime. The following changes were made:

  • Added Wakatime entry in data.json using the URL pattern https://wakatime.com/@{username}.
  • Implemented status_code detection to check for 404 errors for non-existent usernames.
  • Validated usernames using regex to allow letters, numbers, underscores, hyphens, and periods.

This enhances Sherlock's coverage by supporting Wakatime user profiles.

Let me know if any enhancements are needed :)

Copy link
Member

@ppfeister ppfeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid usernames return 404 when tested:

poetry-version-plugin: Using __init__.py file at sherlock_project/__init__.py for dynamic version
poetry-version-plugin: Setting package dynamic version to __version__ variable from __init__.py: 0.15.0
[*] Checking username Vikranth3140 on:

+++++++++++++++++++++
TARGET NAME   : Wakatime
USERNAME      : Vikranth3140
TARGET URL    : https://wakatime.com/@{username}
TEST METHOD   : status_code
Results...
RESPONSE CODE : 404
>>>>> BEGIN RESPONSE TEXT

<<<<< END RESPONSE TEXT
VERDICT       : Available
+++++++++++++++++++++

[*] Search completed with 0 results

When scraping, the returned data isn't always the same as what you'd see in a browser. It's possible that you may need to find an alternative endpoint for use in Sherlock, an alternative user agent string, or some other method.

Let me know if you need help narrowing it down and I'll hop in when able

Awesome web design by the way.

@Vikranth3140
Copy link
Author

Valid usernames return 404 when tested:

poetry-version-plugin: Using __init__.py file at sherlock_project/__init__.py for dynamic version
poetry-version-plugin: Setting package dynamic version to __version__ variable from __init__.py: 0.15.0
[*] Checking username Vikranth3140 on:

+++++++++++++++++++++
TARGET NAME   : Wakatime
USERNAME      : Vikranth3140
TARGET URL    : https://wakatime.com/@{username}
TEST METHOD   : status_code
Results...
RESPONSE CODE : 404
>>>>> BEGIN RESPONSE TEXT

<<<<< END RESPONSE TEXT
VERDICT       : Available
+++++++++++++++++++++

[*] Search completed with 0 results

When scraping, the returned data isn't always the same as what you'd see in a browser. It's possible that you may need to find an alternative endpoint for use in Sherlock, an alternative user agent string, or some other method.

Let me know if you need help narrowing it down and I'll hop in when able

Awesome web design by the way.

Oh okay, i will check it out, Thanks @ppfeister

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting support for: WakaTime
2 participants