Related note 0
Related note 1
Related note 2
Exporting a doc and its subdocs
This guide shows you how to export a Slite doc and all its subdocs using our
Slite API
and a simple Python script.
Prerequisites
1) Install Python
You will need to install Python on your computer.
Refer to the guides below and pick the one that corresponds to your operating system.
4. Using Python on Windows
https://docs.python.org/3/using/windows.html
Add a caption...
5. Using Python on macOS
https://docs.python.org/3/using/mac.html
Add a caption...
2) Install the dependencies
Run the following command in the Terminal app:
python3 -m pip install requests
Run the export script
Here's an example of how you can export a doc and its subdocs using a Python script:
Download this Python script:
slite_export.py
8KB
, Uploaded
last week
Add a caption...
Open the Terminal app on your computer.
Run this command:
python3 slite_export.py
.
Running the script in the Terminal window.
Running the script in the Terminal window.
After running the script, you’ll be asked for two things:
Your Slite API key
The ID of the parent doc you want to export
Getting the doc id.
Getting the doc id.