Untitled
unknown
python
4 years ago
1.2 kB
9
Indexable
import requests import time from bs4 import BeautifulSoup from playsound import playsound for i in range(50000): x = requests.get('https://iphonechecker.herokuapp.com/q/90232/i13Pro/unlocked') if x.status_code == 200: soup = BeautifulSoup(x.text,'html.parser') js = json.loads(soup.find('script', type='application/json').string) for i in range (len(js['props']['pageProps']['stores'])): if js['props']['pageProps']['stores'][i]['storeName'] in ['Century City', 'The Grove', 'Beverly Center' ,'Third Street Promenade','Tower Theatre']: for model in ['MLTT3LL/A','MLTQ3LL/A','MLTR3LL/A','MLTP3LL/A']: if js['props']['pageProps']['stores'][i]['partsAvailability'][model]['pickupDisplay'] == 'available': print(js['props']['pageProps']['stores'][i]['partsAvailability'][model]['storePickupProductTitle'].replace('\xa0',' ')) print(js['props']['pageProps']['stores'][i]['partsAvailability'][model]['pickupDisplay'].replace('\xa0',' ')) print(js['props']['pageProps']['stores'][i]['storeName']) playsound('ding.wav') else: print(x.status_code) time.sleep(3)
Editor is loading...