septa next to arrive script
✓ Published0🌍 Public
Aadanner
Last edited Sep 18, 2026
Created on Sep 18, 2026
This script displays the next three inbound and outbound trains from Swarthmore station, showing each train’s number and expected arrival time. It queries the Septa Next to Arrive API using Python’s `requests` library, then parses JSON responses to extract scheduled times and delays. The code computes expected arrivals by combining departure times with delay minutes, filtering out trains already past, and prints results as text lines for each direction.
AI-generated description