From f3aec937d3d9ea443e2ba1e922e11b8cfdae8f9d Mon Sep 17 00:00:00 2001 From: DavHau Date: Fri, 29 Jul 2022 22:33:34 +0200 Subject: [PATCH] indexers: libraries-io: improve verbosity --- src/indexers/libraries-io/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/indexers/libraries-io/default.nix b/src/indexers/libraries-io/default.nix index 990bbcd9..45f7c766 100644 --- a/src/indexers/libraries-io/default.nix +++ b/src/indexers/libraries-io/default.nix @@ -39,7 +39,7 @@ libraries.io also supports other interesting popularity metrics: outFile=$(jq '.outputFile' -c -r $input) - echo "loadein api key" + echo "loading api key" if [ -z ''${API_KEY+x} ]; then echo "Please define env variable API_KEY for libaries.io api key" exit 1 @@ -62,6 +62,7 @@ libraries.io also supports other interesting popularity metrics: rm -f $outFile for page in $(seq 1 $numPages); do + echo "requesting page $page" url="https://libraries.io/api/search?page=$page&sort=dependents_count&per_page=100&platforms=$platformQuery&api_key=$apiKey" curl -k "$url" | jq "$jqQuery" -r >> $outFile done