Script to merge GTFS ZIP archives into one.
- Uses the first archive contents as a reference.
- Supports wildcards in input arguments.
- Skips files from other archives with a different header.
- Adds the CSV header row once per file in the output archive.
- Avoids lines with duplicate indexes.
Note that the script doesn't check the input or output CSV files validity nor GTFS compliance.
./gtfsmerge.py gtfs1.zip gtfs2.zip gtfs3.zip output.zip