usgpo / bill-status

Information about Bill Status XML Bulk Data including the XML User Guide.
https://www.govinfo.gov/bulkdata/BILLSTATUS
152 stars 64 forks source link

Include beginning StatPage for Public Laws #127

Open aih opened 5 years ago

aih commented 5 years ago

It would be very useful to have access the initial statpage number for any public law once it is assigned by the OFR. The data is available on individual email/webpages here: https://www.archives.gov/federal-register/laws/current.html

Below, for example, is the update for P.L. 116-11. It includes the page that the P.L. will be placed in the Statutes (133 Stat. 843). This item could be added to the 'laws' element or as its own element in the Bill Status.

 S U P P L E M E N T A L   L I S T   O F   P U B L I C   L A W S 

                   Update for April 8, 2019
--------------------------------------------------------------------------------- 
The Office of the Federal Register, National Archives and Records Administration,
has assigned law numbers to the following bill(s) approved by the President: 
---------------------------------------------------------------------------------  

S. 252 / Public Law 116-11
To authorize the honorary appointment of Robert J. Dole to the grade of
colonel in the regular Army.
(Apr. 6, 2019; 133 Stat. 843; 2 pages)
jonquandt commented 5 years ago

@aih - something else you could look at would be to use the package summary or mods metadata from the associated PLAW package. PL 116-11 isn’t currently available on govinfo, but here’s an example from 116-10:

https://api.govinfo.gov/packages/PLAW-116publ10/summary?api_key=DEMO_KEY

See the references element. "references":[{"collectionCode":"STATUTE","contents":[{"title":"133","label":"Stat.","pages":["840","841","842"]}],"collectionName":"Statutes at Large"}]

aih commented 5 years ago

@jonquandt, this is great! Is there a way to make sure these are as up to date as the notifications here: https://www.archives.gov/federal-register/laws/current.html ? Timeliness is important for our application (at the LRC).

aih commented 4 years ago

Just bumping this issue again, as I'm updating our scraper to work with the very useful textVersions field in the BILLSTATUS documents. That document also now has the laws field.

If possible, having the starting stat page in that document would put everything we need in one place and avoid having to GET another page related to the same document. This is particularly relevant since the statpage gets updated after the bill becomes a law, and we already look for updates to any BILLSTATUS documents.

Also, fwiw, we'd only need the starting page, though I could see the data including start page and length of the statute.

aih commented 4 years ago

Apparently, the information is available even more timely here: https://listserv.gsa.gov/cgi-bin/wa.exe?A0=PUBLAWS-L