yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --extract-audio --audio-format=mp3
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --download-sections="*1:10-1:15"
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --download-sections="intro-outro"
Just point yt-dlp to it, it'll handle it.
I'm sure there are plenty, yt-dlp and has a lot of options. And of course it works on basically anything at this point (assuming there's no DRM), it fucking rules.