#Ikea Stock Checker
Python script for notifying you when items become in stock. It can check multiple items on multiple stores.
Note: Gmail account required for email notification
###Installation
-
cd to directory where this code is cloned.
-
optional - create new virtual env
-
Install requirements
pip install -r requirements.txt -
optional - create environment variables if you want to be notified via email
export [email protected] export GMAIL_PASSWORD=mySecretPassword -
modify
items_wantedvariable with your item(s) you want to check for availability. This value can be found in the URL. Ex: when I wrote this, I was looking for: http://www.ikea.com/us/en/catalog/products/S59028752/ so the value you need from the URL is:S59028752items_wanted = { "any arbitrary name you want to use": "S59028752" } -
modify
local_stores. For this you'll have to do some digging in the HTML itself to find all the dropdown values that correspond with the stores you want to use.local_stores = { "PA, Conshohocken": 211, "S Philly": 215, "Whatever name you want to use": 154, "MD, Baltimore": 152 } -
optional - modify local. If you are in the USA you do not need to do anything. If you are located elsewhere than you need to modify
regionandlocalevariables. These values are in the URL. -
Done. Run it via:
python ikea-stock-checker.pyorpython3 ikea-stock-checker.py