Joseph Wheaton

Rackspace Cloudfiles Python API getURLs

So it ended up one day that I needed to grab a lot of URL addresses from files we have on Rackspace Cloudfiles. If you have never used their builtin interface then you have saved yourself from getting a headache. The good news is that they have released an API. So with just a few lines of python code I am up and running with a script that grabs all the URL addresses out of a single container. Hopefully this might help someone get up and running with their API.

First of all if you have not downloaded their Cloudfiles API head over to their Github repo to download and install.

Obviously you will need to change the three variables to whatever is appropiate for you. If you want to do something more than this check out their documentation.