I’m writing an application using Python that adds videos to a user’s playlist on Youtube. Doing this one at a time causes Youtube to start throttling my requests.
There is a batch processing API that allows you to submit 50 requests at once, but I can’t find out from the docs how to submit a batch processing request. The only information about it covers the XML content that needs to be sent for the request.
Does anybody know how to submit a batch processing request?
It looks like this is documented on the gdata-python-client wiki: http://code.google.com/p/gdata-python-client/wiki/UsingBatchOperations. While the examples on that page are for Base and Spreadsheets, not YouTube, it should be fairly straightforward to apply the same techniques to the YouTube API. You will, I believe, need to be using the v2 API.