Upload to YouTube via custom script

Hi!

I’m on the lookout for a way to use YouTube API to upload videos automatically that is located in a specific folder directly to YouTube.
Does such script exist already?

What I need is, after render of the video it will be stored locally.
Once the script detects a change (the completed video in the specified folder) it will begin the upload automatically and finally the script should return the uploaded video link.

I hope above makes any sense - If not, please ask away!

Thanks!