Select Text - Python Script

Is there any chance to select the text from a 3dm file using python scripting? I need to return all texts from a rhino file in a list. I know RhinoScript has that implemented, but I couldn’t find anything for PythonScripting.
Any help would be appreciated.

In Python scripting you have functions like GetDocumentData, GetDocumentUserText and GetUserText. Do none of those give you what you need? Which methods in RhinoScript are you missing?

I was looking at GetAttributeData. Will try the functions you’ve posted. Thanks.

You can also try the TextObjectText function from rhinoscriptsyntax :

Thanks, that is what I was looking for.