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:
--headless
to run the browser in headless mode (default is visible mode).-n VALUE
to specify the number of friends to add (default is 20).-a
to disable initial settings check--message
to provide an optional message to post to profiles.--username
to override the.env
username.--password
to override the.env
password.
To run the bot with all arguments:
python main.py --headless -n 25 -a --message "Hello, let's be friends" --username "example" --password "password"