Created
July 23, 2023 09:01
-
-
Save lg/07227669bacc1cb9ca46ea5f1ba1a78a to your computer and use it in GitHub Desktop.
Revisions
-
lg created this gist
Jul 23, 2023 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ function runcheck() { while true; do curl -s "$1" | pup 'script#apollo-data json{}' | jq '.[] | .text | fromjson | .[] | select(.__typename=="Seat" and .available==true and .type != "Wheelchair" and .type != "Companion") | .column' | awk '{if (p == $1 - 1) {print "Found: " $1 " and " p}; p = $1}' | grep Found && say "go buy tickets $2"; sleep 5; done } runcheck "https://www.amctheatres.com/movies/oppenheimer-66956/showtimes/oppenheimer-66956/2023-07-23/amc-metreon-16/all/111398221" "tomorrow 2:30pm"