Wipe Instagram comments/likes with Selenium automation in Python.
Instagram does not provide a "Select All" button for deleting comments and likes. Users are forced to manually select each like and comment to delete them. This script automates that process.
Hope it helps! Star this repo to save it for later 😉
Disclaimer: This script is for educational purposes only. Use at your own risk. I am not responsible for any actions taken against your account by Instagram.
Update 05/05/24:
- You can now continue running the script after the rate limit has been reached. The script will automatically resume after it detects the rate limit has been lifted.
- Combined into one script.
Update 03/17/24:
- I have noticed Instagram imposes rate limits on the number of actions you can perform in a given time period. The script will tell you if you have hit the rate limit, and if so, you can try running the script a few hours later.
- Also, the script has been updated to use the same browser profile on every run so you don't have to log in every time (to avoid suspicion from Instagram).
- Python 3.x
- Using brew:
brew install python
- Using brew:
- Chrome
- Using brew:
brew install chrome
- Using brew:
- ChromeDriver
- Using brew:
brew install chromedriver
- Using brew:
- English as your Instagram interface language
-
Clone this repository
-
Optional: Use a venv
-
macOS/Linux:
python -m venv venv source venv/bin/activate
-
Windows:
python -m venv venv .\venv\Scripts\activate
-
-
Install the required dependencies
pip install -r requirements.txt
-
Run the script
python script.py
The script logs its progress in the terminal and provides instructions as it runs, so simply follow them.
-
Give the repo a star if it helped!
Look at the code (script.py). Look at my LinkedIn. I am a good guy.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.