Skip to content

AuroraZiling/moelyrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moelyrics

一个简易的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

pure_romaji.png

  • Tips + Translation + Romaji

tips_translation_romaji.png

About

Lyrics from Moegirl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages