@0x04/retro-remix-catcher 中文文档教程
retro-remix-catcher
一个微型 CLI 脚本,用于从复古游戏混音中收集音频文件链接 网站并将它们存储为 M3U 播放列表文件。
Installation
使用 NPM:
$ npm install --global @0x04/retro-remix-catcher
Usage
$ retro-remix-catcher --help
Usage: retro-remix-catcher [options] <output-file>
Options:
-v, --version output the version number
-h, --host <host> host without protocol
-p, --path <path> path - `${page}` is the placeholder of current page
-s, --start <n> start page (default: "1")
-e, --end <n> end page
-x, --exclude <exclude> regex to exclude specific links
-t, --types <types> comma separated list of file types (default: "mp3")
--ssl use ssl (default: true)
--no-ssl don't use ssl
--help display help for command
Support sites
此脚本适用于:
其他站点也可能适用。
Examples
amigaremix.com
获取从 1
到 32
的页面并将其保存为 "atari.remix.org.m3u ":
$ retro-remix-catcher -h amigaremix.com -p '/remixes/${page}/' -s 1 -e 32 amigaremix.com.m3u
remix.kwed.org
获取从1
到15
的页面,排除所有包含"(extract)"的文件名,保存为"remix.kwed.org.m3u":
$ retro-remix-catcher -h remix.kwed.org -p '/?page=${page}' -s 1 -e 15 -x '\(extract\)' remix.kwed.org.m3u
Example M3U files
从上面的使用示例生成的 M3U 文件:
Acknowledgements
- Baum Inventions for the initial idea
- AmigaRemix Crew for their awesome site amigaremix.com
- RKO Crew for their awesome site remix.kwed.org
- Every artist/creator of these wonderful pieces of music
License
retro-remix-catcher
A tiny CLI script for collecting audio file links from retro game remix websites and store them as M3U playlist file.
Installation
Using NPM:
$ npm install --global @0x04/retro-remix-catcher
Usage
$ retro-remix-catcher --help
Usage: retro-remix-catcher [options] <output-file>
Options:
-v, --version output the version number
-h, --host <host> host without protocol
-p, --path <path> path - `${page}` is the placeholder of current page
-s, --start <n> start page (default: "1")
-e, --end <n> end page
-x, --exclude <exclude> regex to exclude specific links
-t, --types <types> comma separated list of file types (default: "mp3")
--ssl use ssl (default: true)
--no-ssl don't use ssl
--help display help for command
Support sites
This script is working with:
Other sites may also work.
Examples
amigaremix.com
Get pages from 1
to 32
and save it as "atari.remix.org.m3u":
$ retro-remix-catcher -h amigaremix.com -p '/remixes/${page}/' -s 1 -e 32 amigaremix.com.m3u
remix.kwed.org
Get pages from 1
to 15
, exclude every filename that contains "(extract)" and save it as "remix.kwed.org.m3u":
$ retro-remix-catcher -h remix.kwed.org -p '/?page=${page}' -s 1 -e 15 -x '\(extract\)' remix.kwed.org.m3u
Example M3U files
Generated M3U files from the usage examples above:
Acknowledgements
- Baum Inventions for the initial idea
- AmigaRemix Crew for their awesome site amigaremix.com
- RKO Crew for their awesome site remix.kwed.org
- Every artist/creator of these wonderful pieces of music