Skip to content

Instantly share code, notes, and snippets.

@pale2hall
Created January 19, 2015 17:02
Show Gist options
  • Save pale2hall/2ce817a15eb6727a076b to your computer and use it in GitHub Desktop.
Save pale2hall/2ce817a15eb6727a076b to your computer and use it in GitHub Desktop.
#!/bin/bash
# Check Amazon Lowest Price
while true
do
leCount=$( curl -s http://www.amazon.com/gp/aw/d/AISN_NUMBER_HERE | grep -c COMPANY )
if [[ $leCount -gt 0 ]]
then
echo "Still Lowest... "
date
sleep $(shuf -i 60-120 -n 1)m
else
echo "Somebody *may* have you beat on the ITEM-NAME-HERE! "
date
sleep $(shuf -i 20-60 -n 1)m
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment