From 1cd9f9183ffd299cb95027fef1a064017b93c8d8 Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Fri, 15 Nov 2024 14:43:07 +0000 Subject: [PATCH 1/3] Use Jolpica API --- tap_f1/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_f1/client.py b/tap_f1/client.py index ff33dff..45166bb 100644 --- a/tap_f1/client.py +++ b/tap_f1/client.py @@ -9,7 +9,7 @@ class F1Stream(RESTStream): """F1 stream class.""" - url_base = "https://ergast.com/api/f1" + url_base = "http://api.jolpi.ca/ergast/f1" _limit = 1000 @override From 5aa0242de4530c95bb9e443776a4379e1dbafc19 Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Fri, 15 Nov 2024 15:29:22 +0000 Subject: [PATCH 2/3] Prefer HTTPS --- tap_f1/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_f1/client.py b/tap_f1/client.py index 45166bb..9182907 100644 --- a/tap_f1/client.py +++ b/tap_f1/client.py @@ -9,7 +9,7 @@ class F1Stream(RESTStream): """F1 stream class.""" - url_base = "http://api.jolpi.ca/ergast/f1" + url_base = "https://api.jolpi.ca/ergast/f1" _limit = 1000 @override From e4d37628c6c26873633cc45bd6b91d349179d514 Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Fri, 15 Nov 2024 15:30:32 +0000 Subject: [PATCH 3/3] Reduce limit to defined maximum https://github.com/jolpica/jolpica-f1/blob/main/docs/README.md#query-parameters --- tap_f1/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_f1/client.py b/tap_f1/client.py index 9182907..1aa7791 100644 --- a/tap_f1/client.py +++ b/tap_f1/client.py @@ -10,7 +10,7 @@ class F1Stream(RESTStream): """F1 stream class.""" url_base = "https://api.jolpi.ca/ergast/f1" - _limit = 1000 + _limit = 100 @override def get_new_paginator(self):