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

Manual Download Count Scripts #193

Closed
wants to merge 7 commits into from

Conversation

jpappel
Copy link
Collaborator

@jpappel jpappel commented Oct 13, 2024

This PR will include 2 scripts to be used for modifying download counts in the database.

The first script produces json containing the counts of downloaded dockets, documents, and comments. Multiple command line flags can be passed to the script, notably start timestamps, end timestamps, and a flag which attempts to fix incorrect downloaded counts.

Note that counts queried from the mirrulation system are unaffected by the timestamps arguments, which are used when getting the official counts from Regulations.gov.

Example get_counts.py output
{
  "start_timestamp": "1776-07-04 00:00:00",
  "stop_timestamp": "2024-10-13 04:04:18",
  "dockets": {
    "downloaded": 253807,
    "total": 253807
  },
  "documents": {
    "downloaded": 1843774,
    "total": 1843774
  },
  "comments": {
    "downloaded": 22240501,
    "total": 22240511
  }
}

OnToNothing and others added 4 commits October 4, 2024 08:17
`get_counts.py` outputs the current mirrulations download counts along
with the official regulations.gov counts.
If supplied with start or end timestamps, the regulations.gov data will
be for a specific timeframe.
@jpappel
Copy link
Collaborator Author

jpappel commented Oct 13, 2024

@OnToNothing You should push your script to this branch

@jpappel
Copy link
Collaborator Author

jpappel commented Oct 17, 2024

Closing this in favor of #194 which is simpler to use

@jpappel jpappel closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants