https://github.com/jayqi/mirrulations-cli
A command-line tool for working with dockets from regulations.gov via the Mirrulations dataset.
https://github.com/jayqi/mirrulations-cli
Last synced: 10 months ago
JSON representation
A command-line tool for working with dockets from regulations.gov via the Mirrulations dataset.
- Host: GitHub
- URL: https://github.com/jayqi/mirrulations-cli
- Owner: jayqi
- License: mit
- Created: 2025-07-26T16:18:35.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-26T17:01:03.000Z (11 months ago)
- Last Synced: 2025-07-26T21:29:19.372Z (11 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Mirrulations
A command-line tool for working with dockets from regulations.gov via the [Mirrulations dataset](https://registry.opendata.aws/mirrulations/).
This tool currently has two commands that wrap two existing scripts:
- `mirrulations fetch` — Download all data for a specific docket by ID. See [documentation](https://github.com/mirrulations/mirrulations-fetch/).
- `mirrulations csv` — Reformat comments data as a tabular CSV file. See [documentation](https://github.com/mirrulations/mirrulations-csv).
## Example usage
```bash
# 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/
```
## Excluding file types
`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`:
```bash
mirrulations fetch CMS-2019-0039 --exclude comments --exclude derived
```