How to use sherlock in python ( requested )

A lot of people have been wanting this because
They want to know how to use sherlock in python!

Here is how to properly use sherlock

To use sherlock in Python, here are the steps you can follow:

  1. Make sure you have sherlock installed in your Python environment. You can install it using pip by running pip install sherlock.
  2. Import sherlock in your Python code by adding import sherlock at the beginning of your script.
  3. Create an instance of the sherlock.Sherlock class by calling sherlock.Sherlock(username, timeout) where username is the username of the account you want to search for and timeout is the number of seconds to wait for a response from the web server.
  4. Call the method on the instance to search for the specified username on various social media platforms.

Here’s an example code snippet demonstrating the use of sherlock:

import sherlock

# create an instance of Sherlock

sherlock_instance = sherlock.Sherlock("john_smith")

# search for the username on various social media platforms

results =

# print the results

for platform, result in results.items():
    print(f"{platform}: {result}")

In this example, john_smith is the username we’re searching for. Running this script will search for this username on various social media platforms and print the results.

and thats basically how to use sherlock lib in python!


This would give an error because Python uses meaningful whitespace.


icic I will redo that tomorrow its literally 2 am on my side here lolz

If you can please help me redo the code uwu!

Which social media platforms will it search through? Can I change it?