Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- #TV
- #ITEM=1648666
- #PS5
- ITEM=1668149
- while sleep 3; do
- date
- LINK=$(curl "https://www.datart.cz/ajax/slot_listing_template.ajax?itemId=${ITEM}&model=fast&zip=" 2> /dev/null | grep reserveItem | head -n 1)
- if [ -n "${LINK}" ]; then
- echo "${LINK}"
- LINK=$(echo ${LINK:6} | cut -d '"' -f 1 | sed 's/amp;//')
- LINK="https://datart.cz${LINK}"
- echo "${LINK}"
- open "${LINK}"
- sleep 180
- fi
- echo "Nic"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement