jikan-me / jikan Goto Github PK
View Code? Open in Web Editor NEWUnofficial MyAnimeList PHP+REST API which provides functions other than the official API
Home Page: https://jikan.moe
License: MIT License
Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
Home Page: https://jikan.moe
License: MIT License
Related forum topics of anime/manga
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/pics
Current response example looks like this:
"image":"https:\/\/myanimelist.cdn-dena.com\/r\/23x32\/images\/voiceactors\/2\/17135.jpg?s=1e4f2f416890bc60d338b2c67f54daf3 1x, https:\/\/myanimelist.cdn-dena.com\/r\/46x64\/images\/voiceactors\/2\/17135.jpg?s=69b969ff9c8a792f7f341adcfcd850f2 2x"
This parses after the anime() or manga() method and fetches from sub pages such as
https://myanimelist.net/anime/1/Cowboy_Bebop/video
https://myanimelist.net/anime/1/Cowboy_Bebop/episode
https://myanimelist.net/anime/1/Cowboy_Bebop/reviews
https://myanimelist.net/anime/1/Cowboy_Bebop/userrecs
and so on.
Each pages are individual, so they require more work and bandwidth.
Possible code use is
\MAL\GET->anime($id)->video()->episode()->reviews()
The data keeps getting accumulated in the returning array.
Low priority since it requires a lot of work. So I'll do it in the end.
Anime
Manga
Probably due to cache or monitor classes.
Mention(s): https://github.com/irfan-dahir/jikan/issues/25
Ran a GET for almost 500,000 chracters and it got stuck somewhere in the middle (logs didn't work as expected). Keeping an eye out.
It's different than the title
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/video
add CHANGELOG.MD
Anime has everything fine, but manga seems to be missing these three specifically.
Add support for type for anime and manga.
anime = OVA/ONA/TV etc
manga = novel/manga
Can't pinpoint what's wrong with the ReGex. Will have to find proper regex for this or use a roundabout method...
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/episode
This acts as a wrapper for the official authentication stuff in https://myanimelist.net/modules.php?go=api
Low Priority - Possibly to be done after scrapping work is done.
Example link:
https://jikan.me/api/anime/16067
Example output:
"Nagi no Asu kara</a>"
Via URL: https://myanimelist.net/malappinfo.php?u=Nekomata1037&status=all&type=anime/manga
Parse XML into JSON and respond.
$jikan->list($username, $type);
GET https://jikan.me/list/username/anime
GET https://jikan.me/list/username/manga
Littered with HTML tags.
I'm getting 500 on any and all gets to the API, it seems to be down atm?
As with Character, parse the actual (English) name of the person.
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/stats
The official MAL search API is lacking in terms of pages. You can get the results from the first page but you've no idea what's on the rest of the pages.
Thus, this method will allow you to get results from any page of query. Will also include the amount of pages available.
Possible usage:
$results = \MAL\GET->search("string", 2 /page/{, type; anime, manga})
Some preg_match issues and completion of stuff it's missing out
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/moreinfo
Noticed that there arent images on them. (except for specific characters in a Person or for anime in Characters)
Could you parse that?
Currently, it returns an empty array with a 200 status for non-existent users.
Anime IDs being: 21, 22, 80, 85, 86, 87, 189, 195, 232 and possible others.
All return same errors.
Parse data from pages like these: https://myanimelist.net/anime/1/Cowboy_Bebop/characters
I'm collecting info from your API, the first round many animes give me error 500 or others, second run it works fine.
So if it crawl by request, maybe you need put this info on the README (any way, I think right now you have 13000+ animes thanks too all my request [sorry for the "little attack" I don't want parse again all mal, just to get the info anime and crawl data etc...])
PD: Also some request return false as response, what it means?
In my parser I map json keys to Java variables, example:
@SerializedName("ranked") public int ranked;
To parse the JSON, I use GSON, so my code looks like this
Anime anime = gson.fromJson("here comes the json provided by Jikan");
(to call the ranked variable, I use anime.ranked
, Parsing and mapping to a Java object happens only in one line of code)
My problem is that Sequel on Jikan can either return a double List/Array, if the Anime has more than 1 sequel - or single Array when the Anime only has 1 sequel
To completely mitigate this issue (for me), making it always return a double array fixes it
Example current JSON:
"Sequel": [
"Clannad: After Story<\/a>",
"\/anime\/4181\/Clannad__After_Story"
]
Example new situation
"Sequel": [
[
"Clannad: After Story<\/a>",
"\/anime\/4181\/Clannad__After_Story"
] // add other sequels here, comma separated
]
I was wondering if this is possible for Jikan, if not I'll just keep the 'Related Anime' off my app
Oh and to clarify, only return a list if there is an related Anime found of course.
PS: I am looking for solutions on my end, so if I manage to find it, I'll just close the issue
Adding an anime/manga to a list
Example link: https://jikan.me/api/anime/16067232
Returning a non-200 status code allows me to deliver feedback to the user that makes more sense. Right now I need to look in the message to figure out what is wrong.
I completely understand why it returns 200... but I'd rather prefer the status in the HTTP Status code.
As with person, "link-canonical".
Anime uses genres, so I thought it would be nicer to have it uniform and name it genres in Manga as well. (already made my code fail once haha)
Causing issues with PHP 5.6
title-romanji
and title-japanese
switched, as reported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.