Skip to content

Add --all-dates option to download all inventory dates#19

Merged
themightychris merged 1 commit intomainfrom
themightychris/download-all-dates
Jan 31, 2026
Merged

Add --all-dates option to download all inventory dates#19
themightychris merged 1 commit intomainfrom
themightychris/download-all-dates

Conversation

@themightychris
Copy link
Member

Add a new --all-dates flag to download all available dates for an agency based on inventory data.

The flag is mutually exclusive with --date and only works with --agency. Size estimation is calculated correctly for multi-day downloads, and validation ensures --all-dates requires --agency.

Examples:

  • --agency actransit --all-dates - download all AC Transit data
  • --agency septa/bus --all-dates - download all SEPTA bus system data

Add a new --all-dates flag to download_data.py that downloads the entire date range available for an agency based on inventory data. The flag is mutually exclusive with --date and only works with --agency.

Key changes:
- Add --all-dates argument (mutually exclusive with --date)
- Update download_agency() to accept start_date/end_date instead of single date
- Calculate estimated sizes correctly for multi-day downloads
- Add validation to ensure --all-dates requires --agency
- Validate system_id early to avoid wasted calculations
- Update documentation with examples and command reference
@themightychris themightychris merged commit 9475501 into main Jan 31, 2026
2 checks passed
@themightychris themightychris deleted the themightychris/download-all-dates branch January 31, 2026 02:24
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