I Wish I Could Just Throw It At the 'Net
October 15, 2009 2:33 PM   Subscribe

Auomating Mac Filter: I want to upload a movie to a free video sharing site from the command line. How?

I currently have a system where I email an image to my Mac Mini which upload the image to TinyPic then Twitters the caption and image URL: ("This is a cool picture! - http://bt.ly/example")

I want to do the same thing with videos. The only problem is that I do not know how to automate uploading a short video to a video sharing site. I found this python script to upload a video to Revver, but using the following command, I cannot get the video to upload:

python /Users/example/RevverExamplePython/revver-upload-video.py /Users/example/revverupload/movie.3gp --login Username --passphrase-file /Users/example/revverpassphrase.txt --age-rating 1 --title test --tag test --author test --url http://www.example.com/ --credits test --description test

Which returns an unnamed error. So, in the end, I want a system to upload a video to any video sharing site and return the URL (or video id) for that video. Help?
posted by 47triple2 to Computers & Internet (3 answers total) 2 users marked this as a favorite
If it's just submitting a web upload form, you could use curl - you'd probably have to login first to get your session cookies. As for getting the uploaded movie URL, that requires a bit more scripting.
posted by wongcorgi at 2:37 PM on October 15, 2009

Response by poster: The script needs to run in the background. I can figure out a way to get the uploaded video's URL. If curl can upload in the background, how would I do that?
posted by 47triple2 at 2:47 PM on October 15, 2009

If you know enough to do basic scripting in PHP, Python, or some such, YouTube's API is documented here:


with sample code for a bunch of languages available here:

posted by effbot at 3:46 PM on October 15, 2009

« Older What was that "Make the Boomers PAY" commercial I...   |   I want to know about low-flow water wells. Newer »
This thread is closed to new comments.