Check if the iPhone X is available in Tokyo Apple stores
Please see my blog post introducing the project for more information.
bundle install
ADDRESS="your_email@something.com" \
PASSWORD="your_email_password" \
NAME="Your Name" \
ruby iphone_x_checker.rb
To change the product being searched:
- Change the
URL
infetcher.rb
by replacinglocation
with your zip code, andMQAY2J/A
with the part number for your product. - Change the
STORE_NAMES
andMODEL_NUMBER
inresponse.rb
(you'll need to check the JSON being returned when you try the stock checker in a browser to get this information)