This link has a tidy little example of how to use python\'s OpenCV library, cv2 to stream data from a camera into your python shell. I\'m looking to do some exp
cv2
it is possible with pafy (https://pypi.python.org/pypi/pafy)
import cv2, pafy url = "https://www.youtube.com/watch?v=aKX8uaoy9c8" videoPafy = pafy.new(url) best = videoPafy.getbest(preftype="webm") video=cv2.VideoCapture(best.url)