This is a Python rewrite of Lastmentor/MyAnimeList_FriendBot.
The original code was very simple and led to some issues with usage. This version includes several improvements to enhance functionality and reliability.
- Cache: Ensures users are added only once to avoid duplicates.
- Randomized Interval & Retry: Increases the success rate of friend requests.
- Automatic Chromedriver Updates: Ensures chromedriver is always up to date.
Feel free to fork the repository and submit pull requests with any changes or improvements you may have.
To run this project, you will need to add the following variables to .env
MALusername
MALpassword
Clone the repository:
git clone https://github.com/Beeamo/MyAnimeList-FriendBot.git
cd MyAnimeList-FriendBot
Install requirements:
pip install -r requirements.txt
The code supports several runtime arguments:
--headlessto run the browser in headless mode (default is visible mode).-n VALUEto specify the number of friends to add (default is 20).-ato disable initial settings check--messageto provide an optional message to post to profiles.--usernameto override the.envusername.--passwordto override the.envpassword.
To run the bot with all arguments:
python main.py --headless -n 25 -a --message "Hello, let's be friends" --username "example" --password "password"