Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beeamo/myanimelist-friendbot

Automate the friend adding experience on MyAnimeList
https://github.com/beeamo/myanimelist-friendbot

friendbot mal mal-friend myanimelist python selenium

Last synced: 11 days ago
JSON representation

Automate the friend adding experience on MyAnimeList

Awesome Lists containing this project

README

        

# MyAnimeList FriendBot

This is a Python rewrite of [Lastmentor/MyAnimeList_FriendBot](https://github.com/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.

## Improvements
- **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.

## Contributing

Feel free to fork the repository and submit pull requests with any changes or improvements you may have.

## Variables

To run this project, you will need to add the following variables to .env

`MALusername`

`MALpassword`

## Installation

**Clone the repository**:

git clone https://github.com/Beeamo/MyAnimeList-FriendBot.git
cd MyAnimeList-FriendBot

**Install requirements**:

pip install -r requirements.txt

## Running the Bot

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.

### Example

To run the bot with all arguments:

```sh
python main.py --headless -n 25 -a --message "Hello, let's be friends" --username "example" --password "password"