Skip to content

The Otohime site parser, which will parse the HTML from the official score site into a JavaScript object, using the browser DOMParser.

License

Notifications You must be signed in to change notification settings

otohime-site/parser

Repository files navigation

The Otohime Parser

The parser will take the HTMLDocument or text (parsing with DOMParser) and return an object for each function.

You need polyfill for DOMParser if you are not under browser environment.

Implemented parser

maimai DX Int'l Version

It is believed that it can be also used to parse from Japanese version of maimai DX Splash, but it is currently untested so use it carefully.

// Providing text from https://maimaidx-eng.com/maimai-mobile/home/...
import { parsePlayer } from "@otohime-site/parser/dx_intl"
const player = parsePlayer(playerText)

// Providing text from https://maimaidx-eng.com/maimai-mobile/record/musicGenre/search/?genre=99&diff=3...
import { parseScores } from "@otohime-site/parser/dx_intl"
const scores = parseScores(scoresText)

About

The Otohime site parser, which will parse the HTML from the official score site into a JavaScript object, using the browser DOMParser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published