Exporting Paper Docs from Dropbox using the Python SDK

Dropbox Paper is a collaborative creation tool, included with Dropbox at no cost.

Originally Paper was a separate repository, but when Dropbox started to integrate Cloud Docs from Google and Microsoft, it made sense to also bring Paper to the Dropbox file system.

With that, the original Paper API has been deprecated. Because Cloud Docs are, well, in the cloud, they are not regular files. Most of them are JSON or XML documents that are treated by the web apps as if they were files. Therefore you cannot download them. Instead, if you need to take them out of Dropbox, you need to export them.

Dropbox just released new endpoints to work with Paper docs. You can export Paper docs with the /files/export endpoint, and I created a Python script to demonstrate its functionality. It uses the Dropbox API Python SDK.

Here it is!
Have fun and let me know what you think!