Joined September 2012
·
A34cd2eb871371b5539bc489f7d086b9

Javi Pacheco

Software Engineer at 47 Degrees
Software Engineer
47 Degrees
·
Cádiz, Spain
·
·
·

Posted to Check when Nexus 4 has stock again over 1 year ago

Gorgeous!! Here Spanish version that send push using PushOver

#!/bin/bash
while true
do
    if [ `curl "https://play.google.com/store/devices/details?id=nexus_4_16gb&hl=es" | grep -io "AGOTADO" | wc -l` -lt 1 ]
then
    echo "In stock"
    curl -s -F "token=TOKEN_APP" -F "user=USER_KEY" -F "message=Corre por el Nexus 4" https://api.pushover.net/1/messages.json
    exit 1
fi
echo "Not in stock :("
sleep 120
done
Achievements
456 Karma
27,518 Total ProTip Views