Skip to content

Instantly share code, notes, and snippets.

@mheesters
Created October 14, 2023 19:27
Show Gist options
  • Save mheesters/763495fb24c944ce655b2250f212d097 to your computer and use it in GitHub Desktop.
Save mheesters/763495fb24c944ce655b2250f212d097 to your computer and use it in GitHub Desktop.
Check UFC shorts Sale/availability script
#!/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
@mheesters
Copy link
Author

mheesters commented Oct 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment