This script allows you to search for an Instagram profile using user ID or retrieve a profile's ID by username. It utilizes the Instagram API to retrieve profile information based on the provided input.
- Python 3.x
In order to use this script, you need to provide your Instagram session ID. The session ID is a unique identifier associated with your Instagram login session, and it is required to authenticate your requests to the Instagram API.
To obtain your Instagram session ID, you can follow these steps:
- Open Instagram in your web browser.
- Log in to your Instagram account.
- Right-click on the page and select "Inspect" to open the browser's developer tools.
- In the developer tools, navigate to the "Application" tab.
- In the left sidebar, expand the "Cookies" section and select "https://www.instagram.com".
- Look for a cookie named "sessionid" and copy its value.
- Clone the repository or download the script.
- Install the required dependencies by running
pip install -r requirements.txt
in your terminal. - Run the script by executing
python3 ig-lookup.py --session [SESSION_ID] {--username [USERNAME] OR --userid [USERID]}
in your terminal.
Please note that the session ID will eventually expire.
This script is provided for educational purposes only. Please use it responsibly. Any misuse of this script and its consequences are solely the user's responsibility. The author does not take any responsibility for any misuse of this script.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License.
- @AyalX on GitHub.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
Give a ⭐️ if this project helped you!