-
-
Save grokasm/5d9def55a0e8022f193e to your computer and use it in GitHub Desktop.
Micro Motor Warehouse Dark Force Friday Inventory polling
This file contains 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
while true; do curl http://micro-motor-warehouse.com/collections/frontpage/products/the-dark-lords-giveaway.js 2>/dev/null | jq ".variants[]|{qty:.inventory_quantity,opts:.options}|.opts[0]+\" -> \"+.opts[1],.qty"; echo "--------------------------------";sleep .3; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The command works in any bash terminal in linux. Need
jq
installed. Link hereThe command polls the inventory feed ~3x/second and parses out the variant options and their inventory.
Best of luck.