Skip to content

Instantly share code, notes, and snippets.

@jeyraof
Created October 21, 2022 17:15
Show Gist options
  • Save jeyraof/9af4a42171144a0877288a45c5145c1b to your computer and use it in GitHub Desktop.
Save jeyraof/9af4a42171144a0877288a45c5145c1b to your computer and use it in GitHub Desktop.
화담숲 티켓 조회
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