Forum Settings
Forums
Must be a Club Member to Reply 
#1
Sep 23, 2016 5:44 AM
Offline
Joined: Mar 2016
Posts: 283
Searching for a specific anime from an ID is necessary.

Return an empty object if no anime is found with the ID specified.

This feature would make it easier to target specific anime information, and would also make it a great way to find random anime (get a random number, and boom).
My Chrome Extension, QuickMyAnimeList is now on the Chrome Web Store! LinkThread

 
#2
Sep 23, 2016 9:15 AM

Offline
Joined: Oct 2015
Posts: 147
I don't think they are going to fix this API let alone add more features. We just have to wait for new one which is bound to come some day, you can always do some html scrapping in the meantime ^^
I've made Windows 10 and Android apps for MAL! Source!
 
#3
Sep 23, 2016 10:00 AM
Offline
Joined: Mar 2016
Posts: 283
Drutol said:
I don't think they are going to fix this API let alone add more features. We just have to wait for new one which is bound to come some day, you can always do some html scrapping in the meantime ^^


Yeah, I was hoping for a miracle. It didn't happen. HTML scraping with pure JavaScript is not even possible, so I just have to stick with the current one. Search with the name, and hope that the first result is the one I need.
My Chrome Extension, QuickMyAnimeList is now on the Chrome Web Store! LinkThread

 
#4
Sep 23, 2016 10:06 AM

Offline
Joined: Oct 2015
Posts: 147
Yeah, unfortunately shows like "K" prove to be problematic :D
You can always write your own api... it's not.... that bad...
Thanks for quote though, my notification (scrapping level => extreme) system seems to be working ok ^^
I've made Windows 10 and Android apps for MAL! Source!
 
#5
Sep 23, 2016 3:16 PM
Offline
Joined: Mar 2016
Posts: 283
Drutol said:
Yeah, unfortunately shows like "K" prove to be problematic :D
You can always write your own api... it's not.... that bad...
Thanks for quote though, my notification (scrapping level => extreme) system seems to be working ok ^^


Oh god, I didn't know about that anime. I'm just going to hope none of my users watch that, or any kind of similar one or two lettered anime.

My Chrome Extension, QuickMyAnimeList is now on the Chrome Web Store! LinkThread

 
#6
Nov 2, 2016 12:31 PM

Offline
Joined: Jun 2009
Posts: 25
There is a quirky way to get ID -> anime translation by downloading the site's sitemaps like myanimelist.net/sitemap/anime-000.xml, searching for line with /<ID>/ in it and then replacing "_"s in the corresponding URL's path to get the name (the filesize for manga ~5Mb and anime ~2Mb).
A story has no beginning or end; arbitrarily one chooses that moment of experience from which to look back or from which to look ahead.
 
#7
Nov 2, 2016 2:33 PM
Offline
Joined: Mar 2016
Posts: 283
ErgoSis said:
There is a quirky way to get ID -> anime translation by downloading the site's sitemaps like myanimelist.net/sitemap/anime-000.xml, searching for line with /<ID>/ in it and then replacing "_"s in the corresponding URL's path to get the name (the filesize for manga ~5Mb and anime ~2Mb).


The thing is that it's not just spaces that are replaced by an underscore. It's also colons and exclamation marks as well.

I didn't know about the XML feature. I couldn't find it though, with the URL you provided. What can be an example URL?

I tried
https://myanimelist.net/sitemap/anime/20507.xml
and
https://myanimelist.net/sitemap/anime-20507.xml
but both didn't work.


EDIT:
https://myanimelist.net/sitemap/anime-000.xml
worked, but it only shows the information until number 884. What about the rest?
My Chrome Extension, QuickMyAnimeList is now on the Chrome Web Store! LinkThread

 
#8
Nov 2, 2016 6:24 PM

Offline
Joined: Jun 2009
Posts: 25
The full XML list of sitemap URLs is here:
https://myanimelist.net/sitemap/index.xml
And those are not an API but just static lists of all relevant URLs for search engines. The problem of not showing the full listing is on your end as it shows up to
https://myanimelist.net/anime/33993/300_En_no_Otsukiai
for me. Try to download the whole file and view it in a text editor.

You can possibly refine searches by filtering special characters, finding duplicate names and making real API requests for ambiguous results. But I think this method gives enough approximation to avoid flooding MAL with actual API requests.
A story has no beginning or end; arbitrarily one chooses that moment of experience from which to look back or from which to look ahead.