This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Note: this is deprecated. jq is still awesome, so now we just get JSON all the way | |
# jq JSON parser is awesome: | |
# http://stedolan.github.io/jq/ | |
# The NHTSA API is pretty clunky, requiring you to get a list of all the years, then all the models in that year, then all the makes per model, and then | |
# finally, you get the vehicle IDs needed to query the endpoint for one vehicle at a time. | |
# | |
# I query for JSON for most of the loop, and in the end, I get the Vehicle data in CSV format |