Skip to content

seanbreckenridge/mal-id-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mal-id-cache

Anime and manga cache information is back filled from Hiyori-API/checker_mal. I plan to keep this updated for the foreseeable future, though HiyoriDB will eventually be a nicer and more complete replacement.

This is a cache of anime and manga ids on MAL

Since April 2nd 2020, MAL updated how characters/persons on their site are laid out making the People/Characters much more difficult to check for updates. The people.json and character.json files will remain unchanged, they are up to date as of March 31st, 2020.

If you want a (somewhat) random character or person, you can request a random anime/manga using the cache files here, then pick a random character/staff member from that entry.

cache includes anime, and manga IDs

The JSON files for anime/manga are structured like:

{
  "sfw": [1, 5, "..."],
  "nsfw": [188, 203, "..."]
}

Raison d'être

The reason this exists is because there's currently no easy way to get a list of all the approved entries on MAL.

Whenever an entry requested to be added (by a user), it gets an ID and is listed "on the website" - unlisted; at this point no one can add it to their list.

If a moderator approves the entry, it keeps the same ID and becomes an entry that people can view publicly.

If its denied, the ID disappears and becomes a 404, leaving a 'gap' in the IDs for MAL. At the time of writing this, the most recently approved anime ID is 40134, but there are less than 17000 anime entries on MAL.

There have been a few cases where IDs are re-used for others, but that is not the common case.

This uses the Just Added page on MAL to find new entries, but all that page is is a search on the entire database reverse sorted by IDs. New entries may appear on the 2nd, 3rd, or even 20th page, if a moderator took a long time to get around to it.

The most obvious application for this cache is to use the cache to choose an entry at random.

This will be updated whenever a new entry is added.

You can either clone this repo to your system and set up a script that git pulls periodically, or download the raw JSON files directly from cache (though that means you have no way of knowing when the file is updated)

About

An cache of MAL database IDs updated whenever something is added to the database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published