Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.32 KB

File metadata and controls

50 lines (41 loc) · 1.32 KB

Instagram CLI (Python Version)

A simple, human-friendly command-line tool to send and receive Instagram DMs using Python.

Features

  • Login securely (password hidden)
  • View your Instagram inbox
  • Open and read chat threads
  • Send direct messages
  • Two-factor authentication support
  • Logout

Requirements

  • Python 3.11 (recommended)
  • Instagram account

Setup

  1. Clone or download this repository.
  2. Create a virtual environment:
    python3.11 -m venv .venv
    source .venv/bin/activate
  3. Install dependencies:
    pip install instagrapi colorama
  4. Run the CLI:
    python main.py

Usage

  • When prompted, enter your Instagram username and password (password input is hidden).
  • Use the menu to view inbox, open chats, send DMs, logout, or exit.
  • If two-factor authentication is enabled, enter the verification code when prompted.

Troubleshooting

  • If you see import errors, make sure you have activated your virtual environment and installed all dependencies.
  • This tool may not work with Python 3.14 or newer due to package compatibility. Use Python 3.11 for best results.

Security

  • Passwords are never stored or displayed.
  • No session data is saved locally; you must log in each time you run the CLI.

License

MIT


Made with ❤️ by Geetansh Goyal