namagent is a cross-platform live streaming alert CLI application written in Golang.
- live.nicovideo.jp: ニコニコ生放送
- 動画データの取得: WebSocketサーバから取得したHLSのURLとCookieデータを、ユーザが指定したコマンドに渡して起動します
- コメントデータの取得: MessageServerから取得したChatデータをJSON形式で保存します
--config
: Specify the path to the configuration file (by default, try to load./config.yaml
)
namagent alert [options]
namagent recorder [options] [URL or ProgramId]
See more example of config.yaml
following.nico
: Array of user IDs to be automatically recordedalert.check_interval_sec
: Interval in seconds for periodic monitoring (by default,10
sec)recorder.output_template
: Template for the output file name (by default,{yyyymmdd}-{id}-{providerId}-{title}
)- Example Outputs:
20250101-lv1234-1234-title.ts
20250101-lv1234-1234-title.json
- Example Outputs:
recorder.command_template
: Command array executed during recording, with placeholders for cookies, URL, and output file (by default:["ffmpeg", "-cookies", "{cookies}", "-i", "{url}", "-c", "copy", "{output}"]
)
shinosaki https://shinosaki.com