Created
October 14, 2023 19:27
-
-
Save mheesters/763495fb24c944ce655b2250f212d097 to your computer and use it in GitHub Desktop.
Check UFC shorts Sale/availability script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a KLEUR=(rood wit blauw groen geel) | |
declare -a MAAT=(S M L) | |
for kleur in "${KLEUR[@]}" | |
do | |
date | |
ufchtml=`wget --quiet -O ufc-tmp.html https://nl.venum.com/products/ufc-venum-authentic-fight-night-herenshort-long-fit-$kleur` | |
for maat in "${MAAT[@]}" | |
do | |
echo "Checking $kleur - $maat.." | |
ufccheck=`cat ufc-tmp.html |grep "<span>$maat</span>"|grep -v disabled` | |
if [[ ! -z "$ufccheck" ]] | |
then | |
echo "$kleur - $maat - Op voorraad" | |
exit | |
fi | |
done | |
sleep 10 | |
done | |
sleep 300 | |
./check-ufc.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple crawl script which checks the availability of some venum shorts in specific sizes/colors that are on sale.
Most of the time they are sold out, but when returns come in they come available again shortly.