14 lines
331 B
Bash
Executable File
14 lines
331 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# SPDX-FileCopyrightText: 2023 Hugo Peixoto <hugo.peixoto@gmail.com>
|
|
|
|
TERM="$1"
|
|
PAGES="$2"
|
|
|
|
TOKEN="581a26491893263804e888240fad1cf7"
|
|
|
|
for PAGE in $(seq 1 $PAGES); do
|
|
echo "search: $TERM.$PAGE";
|
|
./get.sh search "$TERM" "$PAGE" "$TOKEN" > "data/$TERM.$PAGE.json"
|
|
done
|