Skip to content

Latest commit

 

History

History
85 lines (69 loc) · 1.7 KB

readme.md

File metadata and controls

85 lines (69 loc) · 1.7 KB

marumaru-x 歌詞備份工具

Introduction

This is a tool to crawl song and lyrics from marumaru-x

Installation

pip install -r requirement.txt

playwright install

Crawling

python song_list_crawler.py

python lyrics_crawler.py

Output

The crawled data will be saved in JSON format.

Song List Example

[
    {
        "title": "",  // song title
        "image_url": "",  // thumbnail
        "song_link": "",  // link to marumaru lyrics page
        "duration": 100  // seconds
    }
]

Lyrics Detail Example

{
    "title": "",
    "image_url": "",
    "song_link": "",
    "duration": 100,
    "youtube_link": "",
    "composer": "",  // may be empty
    "artist": "",  // may be empty
    "arrange": "",  // may be empty
    "lyrics_list": [
        {
            "start_time": 0.0,  
            "end_time": 5.0,  
            "lyrics": "Lyrics line 1"
        },
        {
            "start_time": 5.0,
            "end_time": 10.0,
            "lyrics": "Lyrics line 2"
        }
    ],
    "process_time": "1970-01-01 00:00:00" 
}

Contributors

Ken
Ken

All contributions are the same, no matter how big or small.

License

MIT