Extracting data from team students

how to extract text file from team members on teams so you can do data analysis specifically I want to extract the text that has the students grade that was generated by the Replit in the text file in the directories of the student. I want to be able to access that data and coalesce all of the students grades in a CSV file .
it would be nice to have a code python to do this task. Because right now I have to go to each students quiz and go to the text file and copy and paste it onto another program manually.

I know there is a grading section for these teams but it seems like it’s designed for coding correction. And this won’t work for me because my program randomize the questions so they’re not the same order for every student in the order.

code snippet