comments: regulations.gov API client — bulk download comments + attachments #252
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Download all public comments and their PDF/DOCX attachments for a given CMS docket.
Tasks
data/cms/comments/{docket_id}/raw/API Reference
https://api.regulations.gov/v4//documents?filter[docketId]=CMS-1834-P,/comments/{id}, attachments viafileUrlX-Api-Keyheader (obtain from regulations.gov)Delivered as
bib/regulations_gov.py+bib/federalregister.py+ CLI commandsstack bib {discover-pfs-rules, fetch-docket-comments, fetch-pfs-comments, backfill-comments}. Currently a multi-day backfill is running against all 9 PFS dockets 2017–2025 (~164K comments + attachments). Spec deviations:attachmentstable +data/storage/<key>/<filename>instead ofdata/cms/comments/{docket}/raw/. Functionally equivalent, also lets the same files land in Zotero onstack bib sync-zotero.stack bib fetch-docket-comments CMS-1834-P --attachments).Sub-issues #253 (PDF/DOCX text extraction) and #254-#256 (NLP analytics) remain open.