hi,
for OSX maybe using the compiled py external from: http://grrrr.org/ext/beta/macos/pd/
but that's only to search / download video from youtube...
you will have to change how pd is started (portaudio in mac?) & youscrap.py (ffmpeg, path). i am sure it's doable.
pat