BasicOSMParser is a collection of Java classes allowing to parse raw OSM XML files. Then you are able to manipulate those Java objects in your program. You can also export data as CSV files. This ...
OSMnx downloads OSM features from Overpass or reads them from a local OSM XML file. Both of these are relatively slow to process. Reading data from a PBF file can be much faster. Pyrosm previously ...