📖 Project Introduction
ASMRoner is a command-line tool written in Go, used for searching, downloading, and synchronizing asmr.one audio works, and also provides a simple web playback interface.
🌐 Derived work: asmr.furina.in — a simple and clean online ASMR listening page
🚀 Quick Start
https://github.com/MIKANOoOo/asmr-downloader.git && cd asmroner
go build -o asmroner
./asmroner config # 交互式初始化配置📋 Common Commands
# 搜索
./asmroner search "护士" -c 20
./asmroner search "护士,-中出@duration:1h" -c 50下载
./asmroner download RJ01037721 -d ./downloads
./asmroner download RJ01037721,RJ02000001 -d ./downloads
./asmroner download hot100 -n 10 -d ./downloads搜索 + 下载/导出
./asmroner search download "护士" -d ./downloads -s 20
./asmroner search export "护士" -n 100 -f data.json同步元数据 & 批量下载
./asmroner sync
./asmroner sync download -d ./downloads
./asmroner sync retry -d ./downloads
./asmroner sync report # 导出单个作品或指定数量热门榜链接 & 导出到指定目录
./asmroner export RJ01544940 -o ./downloads
./asmroner export hot100 -n 20 -o ./downloads
./asmroner export hot100 -n 10 -o ./downloads
更多内容参考常见问题中的guide
Web 播放界面
./asmroner listen -p 8080 ./syncdata📸 Screenshots
| Configuration | Search |
|:---:|:---:|
|
|
|
| Download | Sync |
|
|
|
| Sync Download | Statistics |
|
|
|
| Web Interface | Web Interface 2 |
|
|
|
| Export Interface | Export Interface 2 |
|
|
|
✨ Features
- Search: Single/batch RJID, advanced search syntax, export results as CSV/JSON
- Download: Single/batch/hot items download, automatic rate limiting, retry, exponential backoff
- Sync: Metadata sync, batch download control, status tracking, failure retry
- Web Interface: Visual browsing, in-browser playback, responsive design
- Configuration: Interactive initialization, supports proxy, rate limiting, jitter, and other advanced options
⚙️ Configuration File Description
Configuration file path: ~/.asmroner/config.toml (TOML format)
[user]
account = "guest"
password = "guest"[downloader]
api_url = "" # 留空自动获取最快站点
proxy_url = "" # 支持 http / socks5
max_workers = 5
max_retries = 3
sync_data_folder = "./syncdata"
sync_wanted_size = "200MB" # 同步容量限制
prefer_media = "all" # all | mp3>wav>flac
[limit]
sync_qps = 2
sync_jitter_min = 100 # ms
sync_jitter_max = 500
download_qps = 0.2
download_jitter_min = 2000
download_jitter_max = 5000
📋 Command Options Quick Reference
| Command | Option | Description |
|---------|--------|-------------|
| search | -c | Number of search results (default 10) |
| search download | -d, -s | Download directory, number of downloads |
| search export | -f, -n | Export file name (.csv/.json), number to export |
| download | -d, -n | Download directory, hot100 quantity |
| sync download | -d | Download directory |
| sync retry | -d | Directory for failed files |
| sync export | -s, -f | Status (failed/success), export file |
| listen | -p | Port (default 9999) |
| export | -o, -n | Export directory, hot100 quantity |
📁 Project Structure
asmroner/
├── cmd/ # 命令行接口(config/download/search/sync/listen)
├── internal/
│ ├── engine/ # 核心下载引擎(限流、重试、并发控制)
│ ├── logger/ # 结构化日志系统
│ ├── model/ # 数据模型与查询参数解析
│ ├── database/ # SQLite 数据库
│ ├── consts/ # 常量定义
│ └── utils/ # 工具函数
├── webui/ # 内嵌 Web 界面(Tailwind + Plyr)
├── main.go
└── go.mod
🛠 Tech Stack
| Component | Purpose | |-----------|---------| | Cobra + Viper | CLI framework + configuration management | | GORM + SQLite | Data persistence | | Resty | HTTP client (supports HTTP/SOCKS5 proxy) | | Pond | Concurrent worker pool | | x/time/rate | Token bucket rate limiting | | Gin | Web service | | Tailwind + Plyr | Frontend UI + audio playback |
🔧 FAQ
Configuration file not found → Run ./asmroner config to initialize
Download failed (stream error) → The program will automatically retry; if it still fails, use sync retry to retry, or check .asmroner-data/download_errors.log
Web interface inaccessible → Make sure the port is not occupied, try -p to specify another port
No search results → Check query syntax, try simplifying conditions
Download method for export command → Refer to guide
🤝 Contribution
Pull Requests are welcome! Fork → create a new branch → submit changes → open a PR.
📄 License
This project uses the MIT License. For details, see the LICENSE file.
🙏 致谢
- 特别感谢 go-asmr-spider
- 感谢所有贡献者和用户!
ASMRoner — 每天晚上都有不同的妹妹陪你入睡 :)
最后更新:2026 年 2 月
--- Tranlated By Open Ai Tx | Last indexed: 2026-05-05 ---