As far as I understood, you are trying to perform an explicit analysis and extract damage element results at the end of the analysis and save them in an open-source database. If this is the case, I suggest comment below.
If you are using Abaqus software for performing this analysis (which was my first guess), then you need to manually extract the result from your model for one time while you are recording the macro and see what commands are used for extracting results from numerical model. Then manipulate the macro you recorded accordingly for saving the results in tabulated format e.g. comma-separated values. Python can easily interact with Excel program and saves the results in this format. I have not done much of programming in Abaqus since I'm using ANSYS most of the time. However, the concept is going to be the same for both.
It feels awkward to link damage with displacement as damage is usually linked to some other variables such as stress, strain or energy. So I will not comment on this item.
Regarding only the displacement question, you should extract the position of nodes between beginning and end of analysis. Displacement will be the difference between the two.