2

I'm trying to find lists of anime by genre in plaintext. Basically, the issue is that every anime list I can find online (MAL, ANN, Anime Planet) is stylised in some way, which isn't conducive to copy-pasting. I'd like the lists in plaintext.

  • this question belongs on stack overflow or power user. That said, you might want to try using this -> blog.scrapinghub.com/2016/02/17/portia-alternative-to-kimono – ton.yeung Apr 15 '16 at 16:47
  • what do you mean by copy-pasting? is xml/json ok? then you could also look at apis of different sites, like myanimelist. – Armin Apr 15 '16 at 17:36
  • 4
    @ton.yeung: No, this question does not belong on Stack Overflow. – Makoto Apr 15 '16 at 19:30
  • MAL's API was remarkably useless as of a year or two ago. It might've improved since DeNA bought them, though. – senshin Apr 16 '16 at 4:09
  • it may be possible to create a PHP Unit Script to run on Selenium to loop though every page of say MAL's anime list and run Javascript script to extract the data from the page and generate a sort of database only containing titles and genre which then could be used to generate a copy and paste friendly list....but weather someone will do that or not is another question – Memor-X Apr 16 '16 at 5:32
3

I wrote a small script that operates on the Wikipedia page that Arcane provided.

var anime = "";

$('#mw-pages li').each(function(key, value)
{
    anime += ($(this).text() + '\n');
});

// Credit to: http://stackoverflow.com/a/18197341/3571997
function download(filename, text) 
{
    var element = document.createElement('a');
    element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
    element.setAttribute('download', filename);

    element.style.display = 'none';
    document.body.appendChild(element);

    element.click();

    document.body.removeChild(element);
}

download($('#firstHeading').text() + '.txt', anime);

How to use:

  1. Start a browser that can inject JavaScript into a page (I will use Google Chrome for this demonstration).
  2. Navigate to a category on the Wikipage (e.g. https://en.wikipedia.org/wiki/Category:Fantasy_anime_and_manga).
  3. Open the developer console (F12) and click on the console tab.
  4. Copy and paste the script in there and press Enter.
  5. You should now receive a text file with all of the anime of this genre.

Remarks:

  • It also lists manga, visual novels etc.
  • Not user friendly.

I shall try to update (and turn it into a userscript) whenever I have more time on my hands.

|improve this answer|||||
  • 1
    I can't test this out yet as I'm on my phone but it looks promising! – Mathime Jun 15 '16 at 20:42
  • @Mathime Thanks! I shall try to improve it next weekend. Let me know if this is what you are looking for :)! – Alagaros Jun 16 '16 at 14:20
2

I believe Ani.me has an API. MAL definitely does: https://myanimelist.net/modules.php?go=api

You should be able to get anime in an XML or text list from one of them.

|improve this answer|||||
2

AniDB has api with their titles in single xml https://wiki.anidb.net/w/API

<?xml version="1.0" encoding="UTF-8"?>
<animetitles>
    <anime aid="1">
        <title type="short" xml:lang="en">CotS</title>
        <title xml:lang="fr" type="official">Crest of the Stars</title>
        <title xml:lang="en" type="official">Crest of the Stars</title>
        <title type="official" xml:lang="pl">Crest of the Stars</title>
        <title type="syn" xml:lang="cs">Hvězdný erb</title>
        <title type="main" xml:lang="x-jat">Seikai no Monshou</title>
        <title xml:lang="x-jat" type="short">SnM</title>
        <title type="syn" xml:lang="zh-Hans">星界之纹章</title>
        <title type="official" xml:lang="ja">星界の紋章</title>
    </anime>
|improve this answer|||||
1

This is the place for a good start. Although it is not sorted by genre, but it's neat, sorting from number "0" to the end of alphabet "z" with production date on the right-hand side. The list contains 7670 anime titles, both licensed and unlicensed.

Go StackOverflow if you want to get a real answer.

|improve this answer|||||
  • 2
    i should add that if you was to go to Stack Overflow for an answer to this then you have to show you have made an attempt at doing this yourself. otherwise it my be seen as a "give me teh codez" question – Memor-X Apr 16 '16 at 10:11
  • I was aware of this, but really what I'm looking for is genre-sorted. – Mathime Apr 16 '16 at 12:25
  • They do however, have an option to sort by genre on this page: animenewsnetwork.com/encyclopedia/search/genre – Michael McQuade Jun 15 '16 at 23:00
1

Wikipedia to the rescue

I'd start from here. Each genre has the list of Anime/Manga that are tagged for that genre. Seems like the thing you want

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.