/MAL-playlist

Convert your MyAnimeList to a YouTube playlist

Primary LanguagePythonMIT LicenseMIT

MAL-playlist

Welcome to MAL-playlist, a python tool to retrieve your MyAnimeList and automatically search for YouTube videos of opening and ending themes for every anime. All of the results are then saved into an HTML file. The hope was to directly make a YouTube playlist but that would require working with the YouTube API and I am really not bothered to do it ._.

Usage

The program has some dependencies. To create the virtual environment run pipenv sync (you need pipenv installed and Python 3.12).

To obtain your own anime list playlist, you need to change the "__main__.py" file, change the argument of the html_encode function to your username, then run the program.

When you run the program an HTML file with name "anime_playlist_{username}.html" is created. While the program is still running, progress is printed in the console.

For now, the program uses the MAL API only for retrieving individual anime information, because there are some inconsistences between the anime list retrieved through the API and the one scraped using selenium.

Keep in mind that you will have to make your own MAL API key, you can do so here. If you are unsure what to fill in I used the following guide. Once you have your client ID, put it in a JSON file at project/.secret/mal_api.json structured as follows:

{
    "Client_ID": "your-client-id"
}

Contributing

I welcome any contribution, especially for the YT player, since it's my first time writing JS... Just make an issue or contact me directly. Thanks!

See also

Take a look at my MAL profile :)