一个简易的Moegirl歌词爬取器 请勿滥用
目前仅测试了部分歌词 (不保证站上的所有歌词都遵循一定格式):
Usage: moelyrics.exe [OPTIONS] --url <URL> --output <FILE PATH> --hiragana <MODE>
Options:
-u, --url <URL>
-o, --output <FILE PATH> Output .html file path
--romaji Display Romaji below lyric lines
--translation Display Chinese Translation below lyric lines
--hiragana <MODE> Display Hiragana above lyric lines with specific mode [possible values: tips, pure, hidden]
-h, --help Print help
-V, --version Print version
PS C:\CodeSpace\moelyrics\target\debug> .\moelyrics.exe -u https://mzh.moegirl.org.cn/DESIRE -o a.html --romaji --hiragana tips --translation
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Moelyrics</title>
</head>
<body>
<div><ruby>夜空<rt>よぞら</rt></ruby><ruby>舞<rt>ま</rt></ruby>う<ruby>粉<rt>こな</rt></ruby><ruby>雪<rt>ゆき</rt></ruby>のような<br/>yo zo ra ma u ko na yu ki no yo u na<br/>粉雪夜空中起舞</div>
<br/>
<div><ruby>降<rt>ふ</rt></ruby>りしきる<ruby>桜<rt>さくら</rt></ruby><ruby>吹雪<rt>ふぶき</rt></ruby>でも<br/>hu ri si ki ru sa ku ra hu bu ki de mo<br/>樱吹雪簌簌飘落</div>
<br/>
<div><ruby>言<rt>い</rt></ruby>いたげな お<ruby>空<rt>そら</rt></ruby>の<ruby>月<rt>つき</rt></ruby>でも<br/>i i ta ge na o so ra no tu ki de mo<br/>欲言又止的明月啊</div>
<br/>
...
</body>
</html>
- Pure + Romaji
- Tips + Translation + Romaji