Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 753 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 753 Bytes

iPhone X Stock Checker

Check if the iPhone X is available in Tokyo Apple stores

Docs

Please see my blog post introducing the project for more information.

Usage

bundle install

ADDRESS="[email protected]" \
PASSWORD="your_email_password" \
NAME="Your Name" \
ruby iphone_x_checker.rb

To change the product being searched:

  • Change the URL in fetcher.rb by replacing location with your zip code, and MQAY2J/A with the part number for your product.
  • Change the STORE_NAMES and MODEL_NUMBER in response.rb (you'll need to check the JSON being returned when you try the stock checker in a browser to get this information)