Write a Makefile that gets data from Data.gov and creates a CSV of the 50 most recent datasets uploaded. For each dataset, the output should include:
- The name of the dataset
- The date it was uploaded
- A download link
Then, also using Data.gov, create a summary CSV showing how many datasets are in each topic category (Environment, Education, Transportation, etc).
- You should be able to run a single command to produce both CSV files.
- You should be able to accomplish this task using only Make and command line utilities, namely
csvkit
. (See their tutorial, here.)
- Data.gov has an API from which you can fetch information about its datasets.
in2csv
can convert more than Excel files to CSV.- It is very helpful to write down the steps, before you start writing recipes, e.g., "Get the data from the API", ..., "Write the CSV." Each recipe should accomplish one step.