Created
November 12, 2013 20:18
-
-
Save chrisdrackett/7437919 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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