Skip to content

Commit

Permalink
Add print function for saving csv to public bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
dcjohnson24 committed Jul 25, 2023
1 parent 140ffbc commit 9f00363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrape_data/cta_schedule_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
csv_buffer = StringIO()
route_daily_summary.to_csv(csv_buffer)

print(f'Saving cta_route_daily_summary_{date}.csv to public bucket')
s3.Object('chn-ghost-buses-public', f'cta_route_daily_summary_{date}.csv')\
.put(Body=csv_buffer.getvalue())

0 comments on commit 9f00363

Please sign in to comment.