I would suggest that this is prohibited in the YouTube Terms of Service, but I'm not sure. In any case, if this is a more interesting project or proof of concept, here are some thoughts:
- I doubt there are any existing libraries, etc. that can do this b / c TOS points.
- Perhaps you could build this yourself:
, , . , , , API.
, . ?