A command-line tool for working with dockets from regulations.gov via the Mirrulations dataset.
This tool currently has two commands that wrap two existing scripts:
mirrulations fetch— Download all data for a specific docket by ID. See documentation.mirrulations csv— Reformat comments data as a tabular CSV file. See documentation.
# Download Docket CMS-2019-0039 to ./CMS-2019-0039
mirrulations fetch CMS-2019-0039
# Transform comments into a CSV to ./CMS-2019-0039.csv
mirrulations csv CMS-2019-0039/raw-data/comments/mirrulations fetch supports a multiple use --exclude flag to exclude certain file types. By default, the following types are downloaded: docket, documents, comments, derived.
For example, to exclude comments and derived and to only include docket and documents:
mirrulations fetch CMS-2019-0039 --exclude comments --exclude derived