Last active
November 10, 2020 10:19
-
-
Save bakueikozo/e2ed9ca204f62336fa83b914fb108c4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
RESP1=`wget -O - "https://airrsv.net/narumiya-familysale/stateful/calendar/lesson?bookingFromDt=20201110000000&bookingToDt=20201116240000&_=1604978591368" | sed -r "s/,/\n/g" | grep "entryPaxCntTotal" > tmpout` | |
RESP2=`cat tmpout | grep -v "300" | wc -l` | |
mkdir reserve | |
echo $RESP1 | |
echo $RESP2 | |
if [ $RESP2 = "0" ]; then | |
echo -e "no room" | |
else | |
echo -e "\ahurry up" | |
sleep 1 | |
echo -e "\ahurry up" | |
sleep 1 | |
echo -e "\ahurry up" | |
cp tmpout "reserve/room".`date "+%Y%m%d_%H%M%S"`".txt" | |
fi | |
sleep 50 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment