I'm trying to create a Python script that will download the drawio files in XML or drawio formats from a list of spaces that contain pages containing drawio macros and automatically upload them to LucidChart via its API. Once the files are converted, they will automatically have new IDs generated by Lucidchart that we will use in a mapping table that will be useful later. This mapping file is really important to know where to replace the old macros by the new ones. We will need the following columns: Space Key, Page Title, Page ID, Drawio file name.
We will have to use this CSV mapping file, completed with the IDs of the new Lucidchart documents, to replace the old drawio macros with the new Lucidchart macros. (This is done using HTML tags.) This way, the new pages will be updated with the new Lucidchart files.
I’m still struggling to get this mapping file from my script. Anyone could help me on this?