Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

govinfo.gov/bulkdata reporting wrong last updated at time #179

Open
ryanoillataguerre opened this issue Dec 1, 2024 · 3 comments
Open
Assignees
Milestone

Comments

@ryanoillataguerre
Copy link

Description

I noticed that the bulk data page on the website is not reflecting the most recently updated elements in that page. I think that what's going on is you're using the first element in the array's date, when it's sorting in ascending order.

Screenshot 2024-12-01 at 11 40 08 AM Screenshot 2024-12-01 at 11 42 11 AM
@llaplant
Copy link
Member

llaplant commented Dec 2, 2024

Thank you for the feedback!

@jonquandt
Copy link
Member

We are looking at a fix for this issue, so that the higher-level folders incorporate updates from new content at lower levels. You can also get latest BILLS changes via the API -- https://api.govinfo.gov/collections/BILLS/2024-12-15T00:00:00Z?offsetMark=*&pageSize=100&api_key=DEMO_KEY will return all of the BILLS that have been added or updated since the specified startDate/time.

You can then follow each results to the summary to get additional metadata or choose to pull the xml directly by constructing a link like:

https://api.govinfo.gov/packages/{packageId from collections endpoint result}/xml?api_key=DEMO_KEY

@jonquandt jonquandt self-assigned this Dec 30, 2024
@ryanoillataguerre
Copy link
Author

Awesome, thanks a bunch for the extra context @jonquandt and that's SUPER helpful. I was trying to do exactly that, you may have just saved me from scraping thousands of bills and diffing their changes 🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants