From 8101c1d30ea8ad1828daf33776aaebe9ec5c332d Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:32:35 +0000 Subject: [PATCH 1/6] Correct check for key --- scripts/gs-cite/google_scholar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index 225a280b5ac..5ab5a999289 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -6,7 +6,7 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") -if api_key is None: +if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.") # Define the request URL From 1f242ee95ebe08fd58e83d050678cf22ce6b2846 Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:39:31 +0000 Subject: [PATCH 2/6] Update google_scholar.py --- scripts/gs-cite/google_scholar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index 5ab5a999289..deb033e81f7 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -5,6 +5,7 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") +print("hello") if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.") From 229ec444dd1d39215fb267659bb3925875336692 Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:43:31 +0000 Subject: [PATCH 3/6] Update google_scholar.py --- scripts/gs-cite/google_scholar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index deb033e81f7..0d8791d01e4 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -6,6 +6,7 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") print("hello") +print("api_key") if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.") From 645049f4a3d027b7d35ba6f25a5e24b242b3b4c7 Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:43:50 +0000 Subject: [PATCH 4/6] Update google_scholar.py --- scripts/gs-cite/google_scholar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index 0d8791d01e4..86c741851e5 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -6,7 +6,7 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") print("hello") -print("api_key") +print(api_key) if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.") From a468759a383f55be60a1bedc2ac265d77178d822 Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:52:49 +0000 Subject: [PATCH 5/6] Fix var name spelling --- .github/workflows/data-processing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/data-processing.yml b/.github/workflows/data-processing.yml index 1ff8f119998..d9dacebc5af 100644 --- a/.github/workflows/data-processing.yml +++ b/.github/workflows/data-processing.yml @@ -68,7 +68,7 @@ jobs: continue-on-error: true # Continue even if this step fails run: python3 scripts/gs-cite/google_scholar.py env: - SERPAI: ${{ secrets.SERPAPI }} + SERPAPI: ${{ secrets.SERPAPI }} - name: Upload data artifact uses: actions/upload-artifact@v4 From 99ef73a3fda2e335cbbc73425aa5458af99b2f2d Mon Sep 17 00:00:00 2001 From: Lukas Wallrich Date: Wed, 26 Mar 2025 16:53:14 +0000 Subject: [PATCH 6/6] Update google_scholar.py --- scripts/gs-cite/google_scholar.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/gs-cite/google_scholar.py b/scripts/gs-cite/google_scholar.py index 86c741851e5..5ab5a999289 100644 --- a/scripts/gs-cite/google_scholar.py +++ b/scripts/gs-cite/google_scholar.py @@ -5,8 +5,6 @@ # Load API key from environment variable api_key = os.getenv("SERPAPI") -print("hello") -print(api_key) if not api_key: raise ValueError("API key is missing. Please set the SERPAPI environment variable.")