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

feat: add Threads #2225

Merged
merged 6 commits into from
Aug 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sherlock/resources/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2736,6 +2736,13 @@
"urlMain": "https://www.svidbook.ru/",
"username_claimed": "green"
},
"threads": {
"errorMsg": "Sorry, this page isn't available",
Copy link
Member

Choose a reason for hiding this comment

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

Sherlock return false positives for Threads as it dynamically loads the string Sorry, this page isn't available.

You can use the title as the error message as <title>Threads</title> is shown for usernames that dont exists.

$ curl -s https://www.threads.net/@zuck | grep "<title>"
<title>Mark Zuckerberg (&#064;zuck) on Threads</title>

$ curl -s https://www.threads.net/@ksjdfhkjsdhfks | grep "<title>"
<title>Threads</title>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied :)

Copy link
Member

Choose a reason for hiding this comment

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

For some reason Threads returns <title>Threads</title> on the username zuck when executed through Sherlock. This will need some deeper digging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to be the custom User-Agent; Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A request with either no headers or with at least the header; "Sec-Fetch-Mode": "navigate" works

"errorType": "message",
"url": "https://www.threads.net/@{}",
"urlMain": "https://www.threads.net/",
"username_claimed": "zuck"
},
"toster": {
"errorType": "status_code",
"url": "https://www.toster.ru/user/{}/answers",
Expand Down
Loading