How to export every shape's coordinate to txt file?

My page have several shapes. How can I export their coordinate to txt file?