Giter VIP home page Giter VIP logo

Comments (8)

Gregory-rt avatar Gregory-rt commented on July 18, 2024 1

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.

from sherlock.

roxerj avatar roxerj commented on July 18, 2024 1

Yeah, sure, not a problem, even if your solution gets accepted first, I don't mind. Still having fun here

from sherlock.

roxerj avatar roxerj commented on July 18, 2024

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"

from sherlock.

Canusmellthatbag avatar Canusmellthatbag commented on July 18, 2024

from sherlock.

Gregory-rt avatar Gregory-rt commented on July 18, 2024

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"

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.

from sherlock.

roxerj avatar roxerj commented on July 18, 2024

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:

  1. Only search for a username with tag in websites where isTagRequired is set to True; e.g. "sherlock user123#1337 --tag" would only check websites with isTagRequired. Otherwise "sherlock user123#1337" would work the same way it's been working till now.
  2. Dynamically check for a "#" symbol in the username arg, so if you enter "sherlock user123#1337", the tag would be detected automatically without using the "--tag" flag. Then proceed to only check the websites with isTagRequired.

Right now I'm proceeding with the 1st option, but it will be easy to change later

from sherlock.

ppfeister avatar ppfeister commented on July 18, 2024

Note that --tag/--tags is also being discussed for use as in #2088

from sherlock.

roxerj avatar roxerj commented on July 18, 2024

I have already created a PR, #2169

from sherlock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.