This project automates the process of reporting an Instagram account through a script using Python and Selenium.
- Automated Login: Logs into Instagram using credentials from a configuration file.
- Automated Reporting: Navigates through the interface to report a specified user account.
- Configurable Settings: User credentials are loaded from a JSON configuration file for easy updates.
To use this script, ensure you have the following installed on your system:
- Python 3.8 or later
- Google Chrome browser
- ChromeDriver (compatible with your Chrome version)
- Download the project to your computer.
Install the required Python libraries using pip:
pip install -r requirements.txt
Create a config.json
file in the project directory with the following structure:
{
"username": "your_instagram_username",
"password": "your_instagram_password"
}
Download ChromeDriver from https://chromedriver.chromium.org/ and ensure it is in your system's PATH or in the project folder.
To start the script, execute the following command in your terminal:
python reporter.py
video.mp4
Once the script starts, you'll be prompted to enter the username of the Instagram account you want to report.
- Launch Chrome: The script initializes a Chrome browser instance using Selenium.
- Login Process:
- Opens the Instagram login page.
- Inputs the username and password from the
config.json
file. - Handles cookies and login prompts automatically.
- Reporting Loop:
- Navigates to the target user's profile.
- Automates the reporting process by simulating user interactions.
- Loops the reporting action continuously.
- Ethical Use: This script is for educational purposes only. Misusing this script to harm or harass others violates Instagram’s policies and may have legal consequences.
- Liability: The author of this script is not responsible for any misuse or resulting consequences.
- ElementNotInteractableException: Ensure the XPaths in the script match Instagram's current DOM structure. Instagram's interface may update, requiring you to adjust the XPaths.
- WebDriverException: Confirm that ChromeDriver is compatible with your installed version of Chrome.
- Use the
headless=False
option in the script to visually inspect the browser’s actions. - Update ChromeDriver and dependencies to their latest versions.
Contributions to improve this project are welcome. Feel free to submit a pull request or open an issue for suggestions or bug fixes.
This project is not affiliated with or endorsed by Instagram. Use at your own risk, and respect the platform's terms and community guidelines.
This project is licensed under the MIT License.