Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /bin/bash
function runCheck() {
while :; do
curl 'https://ww8.ikea.com/clickandcollect/us/receive/' \
-H 'authority: ww8.ikea.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \
-H 'dnt: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'accept: */*' \
-H 'origin: https://order.ikea.com' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://order.ikea.com/us/en/checkout/delivery/' \
-H 'accept-language: en-US,en;q=0.9' \
--data 'payload={"selectedService":"fetchlocation","customerView":"mobile","locale":"en_US","selectedServiceValue":"00ad4803-ca89-498c-b285-b85abf476427","slId":"1241241241","articles":[{"articleNo":"30301624","count":2},{"articleNo":"50335208","count":1},{"articleNo":"70335212","count":1},{"articleNo":"S89324614","count":1},{"articleNo":"00261295","count":1}]}&backUrl=https://order.ikea.com/us/en/checkout/delivery/&hmac=f9e8d1adef15519729e3ee43d4d0595f29908148' \
--compressed
now=$(date)
echo "\n"
echo "$now"
echo "-------------------------"
sleep 300
done
}
runCheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment