There is an online radio. At the moment I am using streamripper with the following commands.
streamripper http://xxx.ru -M 100 -a audio The script downloads audio 100 MB in size and names the new files by index, i.e. audio1.mp3, audio2.mp3, etc.
Most of the files he began to dump into the incomplete folder, so I wanted to compare the bash script for the test. Tell me how to use either curl or wget to do the same? Those. take the stream, download it until the file size is 100MB and save it to the file with the index. And so on