
dm=(8 9 10 11 12)
dd=(1 8 15 22 29)
for m in "${dm[@]}"; do
    for d in "${dd[@]}"; do
        depdate="$d"_"$m"_2023

        echo "SEARCH $depdate"

curl "https://www.singaporeair.com/redemption/getCalendarSearch.form?origin=SEA&destination=PVG&departureDate=$depdate&dateRange=3" -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Referer: https://www.singaporeair.com/redemption/loadFlightSearchPage.form' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Connection: keep-alive' -H 'Cookie: VSSESSION=RigH7c6_iZhTsvOO_XsdEnVHn31j-gwjwORbG-qR.aa-orbflsearch-19-hpzpz; AKAMAI_SAA_COUNTRY_COOKIE=US; AKAMAI_SAA_LOCALE_COOKIE=en_UK; _abck=4F596FDED542FBC2EE59C7A48F8CE445~0~YAAQG4U0F1dNG0WJAQAAY7m8Swo8/bmbgUBGVfxfsbqk3tJ3wiKYvH2oHru56OJPj2N1vF/zyCi7q+VfXneOElxzYGhqBszNecMJuPu8Pli45/mHZo4GUJjmCDqQd00pSw7PDdCrUqB7UP2nwMsBt6jARrx8bpueY6KP+wWNinafi5kTXZDNSUfk8b17aPTbuJdnB3b8yhTxWz3lTum3wbWwHOEL0PK9MehYEl2KtXH+EFHxtdn7WkoSW43T9TwPqPCOZ0vDGhav2LHt2ytXqqBO/XXeU7TOLXOpNeQ54ieG5AsAqGfeYaw0zc0UvHiTwCZLodUrVPyf1rxPjwZbtOFj2siwgrZlV6l85aXoJRPLd9/Le4dEH9UxyY+81Cu3tsVKeGkrx1SCdnZFkDw3CxdvJ9TZGxYXlsoXb7fI~-1~-1~-1; FARE_DEALS_LISTING_COOKIE=false; AKAMAI_HOME_PAGE_ACCESSED=true; SEARCH_SAA_CIB_COOKIE=SEA|PVG|O|12/09/2023|economy|1|0|0|16/06/2023 12:27:15|SHA; ndcd=wc1.1.w-729460.1.2.otpaCR5eNthwUVRTxJFdow%252C%252C.qBLo0kwKO6ga61GmfP2e_uX2wtudXEqouMNzl1YXNvFTfeGn-T2dn4XgVPReLxhCbNgCMU9yq-fpQcmrLF9DaOmVq7NK8MUBaD6fbTvcwEr1dSnB4oSDbX7tts_12uPF6ZMkiE4DIncgBfuirS-A2dTMmeTTEv4cD3__1SvVzLk4VNRmETt9fpH8kHBA5Iy1; gig_bootstrap_3_5pyPNTbHCb_zxq33NNn7feUwRjvj5RHt0XMzDjqdx1UnQzS4Vc7oGvWUgjyDLxsM=sociallogin_ver4; saadevice=desktop; AKAMAI_SAA_DEVICE_COOKIE=desktop; ak_bmsc=BA15FFC93A2BB8E4E82A407B25866BC0~000000000000000000000000000000~YAAQG4U0Fx4ZG0WJAQAA3Pi7SxTiXEWTb6a2/zo8Ikhd+MHYfz70nSvPb9lQnQEj+CZHs97x9zRhKjhxInfKSUdneiE+F3Cyp4GfQYW7xicHFYWEivbYRo76mqB3wd7G7qmwF/r+VuBFZfmJQ7BlQY07c5cYpl0n7iVNg+RmEMNt7S3UliJHwPcbjaOYxooAHeoKvgkXZZZYXabWfQmr9Pvl8Ld6xEcS5o2oEgBg6Vn3BZgTitkth5xnoQf7GGresMizQRUsI7lk4N//2HXoQuH7nYXyCDMVyjcDAaw/FGBdw2G4CsGRjHJjcSGqsNkW9RaUyJMSt9kgyqjDkwKG4251r/CvZB5v1YvPq1zJWOlpelrUjgYoK16b7r/WqBrC/mFYCOoSrArOg0C61GM=; bm_sz=76CE2CA3F7573F364246FDF8330F9833~YAAQG4U0FyAZG0WJAQAA3Pi7SxRqy0X9oIc9igMgeQ3RgnnG+mg8m9Kmkpby2+7ltqlQdaaRzse4DZxCo2iUkE5PwmvIpU2ivzg4G65LE/LHexZQHC1p9nuJGGCV8aQ9DGG+wmaW6qfSVXaf0pVMjr+fOIKVVe85uIeht5TYq9XLBIjH4VH4NpdiBfKlORz4D9E/3gLpvMx6aWGFZV1DIhitTNlp6F7ng/VtVxJXvVawMcMQqaqYqFyRFSXnpe8hM9T9k9jOlkKDNNchBFM1xwS2yord7524Gq71ZbWmHc9wP1BVOaLgiQ0=~3291186~3617606; AKAMAI_SAA_AIRPORT_COOKIE=SIN; HSESSIONID=hacM-DP_djgw38dmiVOepVFOScCuIixe_bYQXnE9.saa-home-27-pzpng; LOGIN_COOKIE=true; LOGIN_POPUP_COOKIE=false; RU_LOGIN_COOKIE=false; SQCLOGIN_COOKIE=false; 6b29450cab647be0f08ef134c7afc9a1=1a6a93b2cc9d79390814bae982273bab; dtCookie=v_4_srv_1_sn_9858FDE5EAE91A4265D3A1118E58FBBB_perc_100000_ol_0_mul_1_app-3A7bacf3aecd29efdf_1; hvsc=true; AKA_A2=A; bm_sv=A1B700FF10AD3E440D355C278A94301F~YAAQG4U0F7glHEWJAQAAfqG/SxQF2MH7kpq9vbCbarygsq6kCbkB3StSamUvc/S0+o7KjvY9FtXligbUVgbgKSQo3S4aSmHnQWukbVulflQmKA0BiurY/DzEaNN99yEjGQ5rvZQL7uJUrXhwZBTX6peGUp5TeyFHnGt1HufCsNNFyjN9V/4GKI7cUc4t5f4RXNlZaPIdV+CSSLkGDGTn5mew0nWmAKz7DpJlKWWz2yVrMTYx4GK+jNEZXGhmG0gP/tYeL3QiSQ==~1; cookieStateSet=hybridState; AWSALB=T/BftTOboCtJGntGDZII7UmykODCAbwT4OZijnVyEdKvRBTjxLMBUgcHBDKYon0pIcUb0un5j6ki1k4LYGROkmHWvJa1Cmahxf7VqgF9QbBI43Sv8BlMlSg7RUEQ; AWSALBCORS=T/BftTOboCtJGntGDZII7UmykODCAbwT4OZijnVyEdKvRBTjxLMBUgcHBDKYon0pIcUb0un5j6ki1k4LYGROkmHWvJa1Cmahxf7VqgF9QbBI43Sv8BlMlSg7RUEQ; JSESSIONID=19RLu_63KQzAtrS-9yTx4SxSXEc7he59aUbjkbaz1NbXaWrZcKdD!-2139077387; AKAMAI_SAA_DEVICE_COOKIE=desktop; AKAMAI_SAA_KF_TIER_COOKIE=K; VSUUID=6e17dba21703fed742eaf7b8152527a612c9d0bfd87b68d962456b21284e64f8.saa-home-27-pzpng.1689192764126; kfMagic=K_0cae04dd76558936f83cd86055f409d7; bm_mi=A2D6F819C2988F1C869F949CBD91225D~YAAQG4U0FzREG0WJAQAABJm8SxShwTxnOVmTmjuqF8oLZnu7BEGk+3pqjhUaFGNSrnDxH6sm7nfaz9cnyp70G+H7j6E+99yz8Wua0FWdoBuOtP3w4B5wcBF99hiA4Ny1H7bTXlOZJVMK1Tem9CQnV7rbNe6xWa3nkvNkNGroZ/8aOgdNRouM4cM+MQzLnOiZaDdCU+w28ed6+tOiRkaQlMk1dMOSABOZA+KPyH6zNy3tXMIMnrCytymAOzKjC1g/cAteRrVqyHvddVK8ZfE+W7n7ip2jB+mdsOwh2w9rNh84+hGWgUYUq0FNSQAD8a8zzxycnty/fZebApWdQY7gXAfPDokvQ4R56kB3uUfK2UZckrtYIMY=~1; CIB_SEARCH_HISTORY_0=SEA|PVG|O|13/09/2023|economy|1|0|0|16/06/2023 12:26:42|PVG; CIB_SEARCH_HISTORY_1=SEA|PVG|O|12/09/2023|economy|1|0|0|16/06/2023 12:27:15|PVG; ORB_SEARCH_HISTORY_0=SEA|PVG|O|06/09/2023|economy|1|0|0|16/06/2023 12:32:19|PVG; ORB_SEARCH_HISTORY_1=SEA|PVG|O|14/09/2023|economy|1|0|0|13/07/2023 04:13:12|PVG; bcd4e19bb5e920747bf377600682edcf=bf67dff1d9a533cd7b2f9b9da70c7dfd' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers' -s | gzip -d | json2table /flightSearch/response/data/segments/fares

    done
done
