Created
July 23, 2023 09:01
-
-
Save lg/07227669bacc1cb9ca46ea5f1ba1a78a to your computer and use it in GitHub Desktop.
amc tickets
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 characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment