Automatically mute multiple words on X (Twitter) using Selenium automation.
- Bulk mute words from a list
- Automatic login to X account
- Customizable word list in markdown format
- Colorful console output
- Detailed error handling
- Progress tracking
- Summary report
- Python 3.8 or higher
- Google Chrome browser
- ChromeDriver matching your Chrome version
- Clone the repository:
git clone https://github.com/yourusername/x-mute-words.git
cd x-mute-words
- Install required packages:
pip install -r requirements.txt
-
Download ChromeDriver:
- Check your Chrome version at
chrome://version
- Download matching ChromeDriver from ChromeDriver Downloads
- Place
chromedriver.exe
in the project folder
- Check your Chrome version at
-
Set up environment variables:
- Edit
.env
file. - Update with your X credentials
- Edit
- Edit
wordlist.md
to add words you want to mute:
# Mute Words List
- word1
- word2
- word3
- Run the bot:
python mute_bot.py
- The bot will:
- Log in to your X account
- Navigate to mute settings
- Add each word from your list
- Show progress in the console
- Provide a summary when finished
- Edit
wordlist.md
to modify the list of words to mute - Each word should be on a new line and start with a dash (-)
- Update
.env
file with your X credentials
-
ChromeDriver Error:
- Make sure Chrome is installed
- Download the correct ChromeDriver version
- Place chromedriver.exe in the project folder
-
Login Issues:
- Check your credentials in
.env
- Complete any verification if prompted
- Make sure your account is not locked
- Check your credentials in
-
Rate Limiting:
- The bot includes delays to prevent rate limiting
- If you encounter issues, try increasing delays in the code
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This bot is for educational purposes only. Use at your own risk. Make sure to comply with X's Terms of Service.