How to wirte a script to automatically export videos?

I wonder if it possible to just write a script file (better in python), which can read a txt file records a series of camera names, start date and time, end date and time, and then automatically open and login Smart Client, export the corresponding video to a specified path.

The version is Milestone Xprotect Smart Client 2020 R2. I was told this will only apply for plugin integration. So is that possible to use api or sdk to realise by a separate script?

There is a sample on doing Exports and it could be a good starting point for what you could develop. The sample is c#..

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/exportsample/readme.html&tree=tree_2.html

https://github.com/milestonesys

There is unfortunately not a sample in Python. The sample does require the MIP SDK, MIP Library (uses .Net Framework). I know there is a Python.NET, but otherwise I have no experience and I will not be able to give any support on using this.

Now that you mention scripts; there is export functionality present in the MilestonePSTools. It might for you be an alternative to the MIP SDK..

https://supportcommunity.milestonesys.com/KBRedir?art=000034664&lang=en_US