Created
October 21, 2022 17:15
-
-
Save jeyraof/9af4a42171144a0877288a45c5145c1b to your computer and use it in GitHub Desktop.
화담숲 티켓 조회
This file contains 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
function hds { | |
arrs=("20221029" "20221030" "20221110" "20221112" "20221113") | |
echo | |
echo " 화담숲 체크: https://m.hwadamsup.com/reservation/checkTermsAgree.do" | |
echo | |
for value in "${arrs[@]}"; do | |
result=$(curl -s -d "selDate=$value&itemCode=00001" -X POST https://hwadamsup.com/mReserve/reserveInfo.do | jq '.timeList | map(select(.reQuantity >= 2)) | map(.startTime) | join(", ")') | |
echo " $value: $result" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment