Downloading BBC m4s streams - lmmx/devnotes GitHub Wiki
To download BBC radio streams, log in and access your content in the browser,
then open the network panel and copy the link of the .m4s
file with the
largest number at the end when you skip to the very last seconds of the program.
This is the final segment, and all of the segments together can be concatenated to give a single playable stream (explanation here).
Given the number at the end, you can just iterate from [a non zero-padded] 1 to that number, e.g. if the last is "-1716.m4s" you'd start at "-1.m4s" and ask for every number in between.
This can be done with wget, just save the last link to a file: