Advertisement
BoogeyCZ

Untitled

Feb 20th, 2021
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. #TV
  4. #ITEM=1648666
  5.  
  6. #PS5
  7. ITEM=1668149
  8.  
  9. while sleep 3; do
  10. date
  11. LINK=$(curl "https://www.datart.cz/ajax/slot_listing_template.ajax?itemId=${ITEM}&model=fast&zip=" 2> /dev/null | grep reserveItem | head -n 1)
  12.  
  13. if [ -n "${LINK}" ]; then
  14. echo "${LINK}"
  15. LINK=$(echo ${LINK:6} | cut -d '"' -f 1 | sed 's/amp;//')
  16. LINK="https://datart.cz${LINK}"
  17.  
  18. echo "${LINK}"
  19. open "${LINK}"
  20. sleep 180
  21. fi
  22.  
  23. echo "Nic"
  24.  
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement