Uses opencv(for face detection), pytube(to download the youtube video), Microsoft Congnitive Emotion API (to tag images with emotions)
Check the comments on the code to understand about it
Example code to pull images from youtube video from the youtube channel: The Late Show with Stephen Colbert.
python3 generator.py