

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.


CC BY-SA 3.0
2016-04-15T16:22:03.440
31426
2017-03-28T07:28:04.863
2016-11-12T13:02:43.317
8486
22638
question
resources
Lists of anime in plaintext


[Wikipedia to the
rescue](https://en.wikipedia.org/wiki/Category:Anime_and_manga_by_genre)

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


CC BY-SA 3.0
2016-06-15T11:14:28.703
33755
2016-06-15T11:14:28.703
6368
31426
answer


I wrote a small script that operates on the [Wikipedia
page](https://en.wikipedia.org/wiki/Category:Anime_and_manga_by_genre) that
Arcane provided.

[code]

    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);
    
[/code]

**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.


CC BY-SA 3.0
2016-06-15T16:30:08.553
33760
2016-11-12T13:08:16.270
2016-11-12T13:08:16.270
8486
11469
31426
answer


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

[code]

    <?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>
    
[/code]


CC BY-SA 3.0
2017-03-28T07:28:04.863
39599
2017-03-28T07:28:04.863
31674
31426
answer