code improvement

This commit is contained in:
Shihaam Abdul Rahman 2023-02-11 01:29:15 +05:00
parent ed7b97c7e8
commit f6f58d3c99
Signed by: shihaam
GPG Key ID: 5641D129E0B55604

View File

@ -2,7 +2,7 @@
START_NID=$1
END_NID=$2
FILENAME=A${1}-A${2}.json
while true;
while [ "$START_NID" -le "$END_NID" ];
do
echo Scraping: $START_NID
CONTENT=$(curl -si https://fikureggedhirun.com/api/fetch?nic=A$START_NID > .cache)
@ -19,9 +19,4 @@ do
echo delaying
sleep 1000
fi
if [ "$END_NID" = "$START_NID" ]
then
exit 1
fi
done