-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Include searching a username with a tag functionality #2164
Comments
Working on it, but using a "#" as a placeholder for a name tag is probably not a good idea since some URLs might already have this symbol. I think it's better to use "<>" or a second "{}". |
is the Sherlock project also capable or searching by email and or phone
number to find accounts?; inquiring minds would love to know
…On Wed, Jun 12, 2024, 3:59 AM Juozapas Cypas ***@***.***> wrote:
Working on it, but using a "#" as a placeholder for a name tag is probably
not a good idea since some URLs might already have this symbol. I think
it's better to use "<>" or a second "{}".
I'm trying to add a new property when adding a website, something like a
boolean variable "isTagRequired", and if set to True, user would be
prompted to add a tag after the username, for example "sherlock
user123#1337"
—
Reply to this email directly, view it on GitHub
<#2164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BH7YCX5I6FPU63J6CYKTEHDZHAEWZAVCNFSM6AAAAABJD2QTZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRSGQ3TIMJVGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I have been working on it as well. Your recommendation about # makes sense to me, I proposed it since it would be intuitive and would make the code more readable. Asking the user to add a tag would only make sense to me if he was using the --site optional argument which specifies which site to search for. |
You're right, so I see 2 options:
Right now I'm proceeding with the 1st option, but it will be easy to change later |
I have already done something pretty similar to the first one (only difference is that the user would have to type "sherlock user123 --tag 1337" for the input you mentioned) and the same functionality (ignoring all sites were tag isnt required). I was waiting for a member of sherlock to respond before opening a pr for that solution. Would you mind working on the second proposal you gave, so that the team could choose between the two? Am terribly sorry for the inconvenience, and you can also continue working on the same solution as well. |
Yeah, sure, not a problem, even if your solution gets accepted first, I don't mind. Still having fun here |
Note that |
I have already created a PR, #2169 |
Description
With many sites (League of Legends, Valorant, Discord in the past) having introduced a username + tag way of identifying an account (e.g Theo#1213), I would like to propose the accomodation of such sites by allowing the user to input an optional tag when searching with sherlock. This would allow the addition of such sites to sherlock, since adding them without a way to input the tag would never result in a positive response from the site.
My proposal would be to add a --tag optional argument, which would be used when searching through sites that have been identified as tag_required in the json file. These sites could also have a # in the url of the json file indicating where the tag should be placed. (e.g https://www.leagueofgraphs.com/summoner/vn/Sophie-1911 this would be "url": "https://www.leagueofgraphs.com/summoner/vn/{}-#" since the username of the example is Sophie and 1911 is the tag).
Code of Conduct
The text was updated successfully, but these errors were encountered: