Converting XML to CSV using ElementTree

As I have been working on cleaning the OpenStreetMap of Warsaw, I needed to convert chosen information from an XML file to CSV format.  While the operation in itself is rather straightforward, I find it a good opportunity to share a snippet of working code.

Continue reading “Converting XML to CSV using ElementTree”

Parse a CSV file in Python the hard way

Did you ever want to parse a CSV file in Python without using the CSV module? Wait no longer, as below is the description of a simple CSV parser, which could be handy if the simplicity of the actions you want to perform on it does not warrant importing the CSV module.

Continue reading “Parse a CSV file in Python the hard way”