Using sherlock on python

How do I use sherlock on python?

stepp won : Install the sherlock lib using pip: pip install sherlock.

stepp too: Import the sherlock.platforms module to get access to the available social media platforms:

   from sherlock import platforms

stepp tree : 3. Call the platforms.check function with the username you want to search for. This function returns a dictionary with the results of the search:

   username = "example"
   results = platforms.check(username)

The dictionary returned by platforms.check has the following keys:

  • "Exists": a boolean indicating whether the username exists on any of the platforms.
  • "Platforms": a dictionary that maps each platform to a boolean indicating whether the username exists on that platform.

Here is an example that shows how to use Sherlock to check whether a given username exists on Twitter:

from sherlock import platforms

username = "example"
results = platforms.check("example")

if results["Exists"]:
  if results["Platforms"]["Twitter"]:
    print(f"{username} exists on Twitter.")
  else:
    print(f"{username} does not exist on Twitter.")
else:
  print(f"{username} does not exist on any of the checked platforms.")

and thats basically how to use sherlock in pai thon