Skip to content

Instantly share code, notes, and snippets.

@chrisdrackett
Created November 12, 2013 20:18
Show Gist options
  • Save chrisdrackett/7437919 to your computer and use it in GitHub Desktop.
Save chrisdrackett/7437919 to your computer and use it in GitHub Desktop.
import requests
while True:
MODEL = "ME278LL/A"
stores = requests.get('http://store.apple.com/us/retail/availabilitySearch?parts.0=ME278LL%2FA&zip=98033').json()
for store in stores['body']['stores']:
if store[u'partsAvailability'][MODEL]['pickupDisplay'] !='unavailable':
if 'Bellevue' in store['storeDisplayName']:
print 'Available @', store['storeDisplayName']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment