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
URLinfetcher.rbby replacinglocationwith your zip code, andMQAY2J/Awith the part number for your product. - Change the
STORE_NAMESandMODEL_NUMBERinresponse.rb(you'll need to check the JSON being returned when you try the stock checker in a browser to get this information)