Compare commits

...

2 Commits

Author SHA1 Message Date
075e283ffd added gitignore 2023-02-11 01:29:55 +05:00
f6f58d3c99 code improvement 2023-02-11 01:29:15 +05:00
2 changed files with 2 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
A*-A*.json

View File

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