From f8d00a29b9fec3aa5afe6d54e86cff5dad2f7032 Mon Sep 17 00:00:00 2001 From: Phil <15682144+doctor-phil@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:57:56 -0800 Subject: [PATCH] try limiting api call delay --- lectures/applications/working_with_text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/applications/working_with_text.md b/lectures/applications/working_with_text.md index fff98692..c389b363 100644 --- a/lectures/applications/working_with_text.md +++ b/lectures/applications/working_with_text.md @@ -443,7 +443,7 @@ def get_forecasts(start, end, region): #print("working on {}, {}".format(region,day)) forecasts = forecasts + [get_forecast(day, region)] #print("sleeping") - time.sleep(0.1) # to avoid too much load on Avalanche Canada servers + time.sleep(0.05) # to avoid too much load on Avalanche Canada servers day = day + pd.Timedelta(1,"D") return(forecasts)