Suppose I know that a certain YouTube channel will have a live-stream item in the future, between time points t_1 and t_2 (known to me). I have no trouble scheduling things to happen on my system at time point t_1 (and at t_2) - using
cron; but what I don't know how to do is how to do the actual timed capture, and how to notice the stream on the webpage (it's always the main item on the channel page).
What's the easiest/best way to achieve this?
- I'm using Linux.
- I don't mind writing a short script.
- I don't mind about missing a couple of seconds (but I'd rather minimize that of course).