Skip to content

Build First Data Fetch Script #5

Description

@SaiUbc

Description:

Write a small script to collect and save raw data from the translink data source. The data should include key information about buses, timing, stops at UBC, how many people are on the bus etc

Tasks:

  • Create scripts/fetch_<source>.py
  • Script should:
    -- Call the API
    -- Save the full raw JSON/CSV response in /data/raw/
    -- Name file as <source>_YYYY-MM-DDTHH-MM.json
    -- Log request timestamp and status
  • Handle failed requests gracefully (e.g., retry or error message)

Acceptance Criteria:

  • File name includes timestamp
  • Script runs successfully and creates a valid data file in /data/raw/
  • Logs printed or stored

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions