sapo-videos/get-category.sh

14 lines
344 B
Bash
Raw Normal View History

2023-07-28 09:47:33 +00:00
#!/usr/bin/env bash
2023-07-28 10:35:31 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
# SPDX-FileCopyrightText: 2023 Hugo Peixoto <hugo.peixoto@gmail.com>
2023-07-28 09:47:33 +00:00
TERM="$1"
PAGES="$2"
TOKEN="581a26491893263804e888240fad1cf7"
for PAGE in $(seq 1 $PAGES); do
echo "category: $TERM.$PAGE";
./get.sh category "$TERM" "$PAGE" "$TOKEN" > "data/category-$TERM.$PAGE.json"
done