A minimalist Python script to find Instagram profiles instantly
GitHub RepoImpressions4.8k

A minimalist Python script to find Instagram profiles instantly

@githubprojectsPost Author

Project Description

View on GitHub

Find Instagram Profiles with This Minimalist Python Script

Ever needed to quickly check if an Instagram profile exists without opening the app or logging in? Maybe you're building a tool that validates social handles, or perhaps you're just curious if a specific username is taken. Manually checking is tedious, and the official API is, well, overkill for a simple lookup.

That's where yesitsme comes in. It's a clever, lightweight Python script that does one thing well: it tells you if an Instagram username exists, instantly. No authentication, no bulky libraries, just a simple HTTP request.

What It Does

The script is straightforward. You give it an Instagram username as a command-line argument. It sends a single request to Instagram's web endpoint for that profile and reads the HTTP response code. If the profile is found, it returns a success message. If not, it lets you know the username is available. It's essentially a fast, automated way to query Instagram's public profile check.

Why It's Cool

The beauty of this tool is in its simplicity and cleverness. It doesn't use Selenium, the official Graph API, or any other heavy machinery. It uses Python's standard sys and urllib libraries to make a direct web request, parsing the HTTP status code for the answer. This makes it incredibly fast, resource-light, and easy to understand or modify.

It's a perfect example of solving a problem with minimal dependencies. You can drop this script into a larger project for validation, use it in a simple automation, or just run it from the terminal to settle a bet about a username. It's the kind of utility that feels obvious once you see it, which is the mark of a good tool.

How to Try It

Getting started takes about a minute. You'll need Python 3 installed.

  1. Clone the repository:

    git clone https://github.com/0x0be/yesitsme
    cd yesitsme
    
  2. Run the script with a username you want to check:

    python yesitsme.py some_username
    

That's it. You'll immediately see either yesitsme - some_username if the profile exists, or nope - some_username if it doesn't.

Final Thoughts

yesitsme is a neat little script that embodies the Unix philosophy: do one thing and do it well. It's not meant to scrape data or bypass limits; it's a focused utility for a specific, common task. As developers, we often over-engineer solutions. This project is a great reminder that sometimes a few lines of clean Python are all you need.

It's a handy addition to your toolkit for quick validations, and its code is simple enough to be a good reference for similar "check-if-exists" tasks for other platforms.


Find more interesting projects like this by following @githubprojects.

Back to Projects
Project ID: ddf0523e-ca9a-4956-b4d9-f786d38707c1Last updated: March 3, 2026 at 05:57 AM