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

sgm-gharchive: add utility script (gharchive-find-missing-archives.py) #131

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

halcyondude
Copy link
Collaborator

python gharchive-find-missing-archives.py --help                          
usage: gharchive-find-missing-archives.py [-h] [--years [YEARS ...]] [--start_date START_DATE] [--end_date END_DATE] [--persist]
                                          [--filename FILENAME] [--missing_files_list]
                                          directory
Check existence of hourly archive files in a specified directory.
positional arguments:
  directory             Directory path to check for files
options:
  -h, --help            show this help message and exit
  --years [YEARS ...]   Optional: Year(s) to check, e.g., 2023 or 2020 2021 2022
  --start_date START_DATE
                        Optional: Start date in YYYY-MM-DD format
  --end_date END_DATE   Optional: End date in YYYY-MM-DD format
  --persist             Optional: Persist data to file
  --filename FILENAME   Optional: Base filename for persisted data
  --missing_files_list  Optional: Create a list of missing files. Defaults to 'gha-missing-files.txt'
  --download_missing    Optional: Download missing files after analysis.

…), find and/or download gharchive.org archives

Signed-off-by: Matt Young <[email protected]>
@halcyondude halcyondude merged commit 161444b into main Dec 8, 2024
1 of 2 checks passed
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.

1 participant