Programmatically upload Couchbase logs

We wanted to automate the uploading of Couchbase logs(on request basis) to We want to write a python that will export the logs into a file and then another python will automate the upload of that log file to the couchbase upload site. How do we interact with the couchbase upload site through a python program