def getthing(): global browser getinfo() browser = webdriver.Chrome(getinfo.webdriver) browser.get('https://www.doordash.com/consumer/login/?next=/consumer/invite/') if 'https://identity.doordash.com/' in browser.current_url: browser.close() getthing() time.sleep(2)
def speed(): getinfo() r1 = requests.Session() r1.get('https://www.doordash.com', verify=False) headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/64.0.3417.73', 'Accept': 'application/json', 'Content-Type': 'application/json' } password = getinfo.password print('Made first request') genum() phone_number = genum.num gename() name = gename.fname lastname = gename.lname print(lastname) genemail() email = genemail.email print(email) text = r1.post('https://api.doordash.com/v2/consumer/', '{"country":"US","email":"' + email + '","first_name":"' + name + '","is_group_order":false,"last_name":"' + lastname + '","password":"******","phone_number":"' + phone_number + '","enable_password_security":false}', verify=False, headers=headers) time.sleep(1) code = text.text time.sleep(1) json_parsed = json.loads(code) print(json_parsed['referral_code']) id_xd = json_parsed['referral_code'] print(id_xd) getlink(email, password)
def multiref(times): for a in range(0, times, 1): genemail() print(genemail.email) gename() print(f'{gename.fname},{gename.lname}') genum() print(genum.num) csrf = '' getinfo() getoken() headers = { f'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/64.0.3417.73', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Referer': 'https://www.doordash.com/consumer/referred/{getoken.token}/?utm_source=copy' } time.sleep(.2) text = r.post(f'https://api.doordash.com/v2/consumer/', '{"country":"US","email":"' + genemail.email + '","first_name":"' + gename.fname + '","is_group_order":false,"last_name":"' + gename.lname + '","password":"******","phone_number":"' + genum.num + '","enable_password_security":false,"referral_token":"' + getoken.token + '"}', verify=False, headers=headers) time.sleep(.3) code = text.text json_parsed = json.loads(code) print(json_parsed) try: print(json_parsed['id']) except KeyError: print('F**K') id_xd = json_parsed['id'] for c in r.cookies: if (c.name == 'csrf_token'): print(c.value) csrf = c.value r.post( 'https://api.doordash.com/v2/consumers/' + str(id_xd) + '/verification_code/', '{"verification_type":"email"}', verify=False, headers={ 'Accept': 'application/json', 'X-CSRFToken': csrf, 'Client-Version': 'web version 2.0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/64.0.3417.73', 'Sec-Fetch-Mode': 'cors', 'Content-Type': 'application/json', 'Origin': 'https://www.doordash.com', 'Sec-Fetch-Site': 'same-site', 'Referer': 'https://www.doordash.com/consumer/referred/' + getoken.token + '/?utm_source=copy', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9' }) time.sleep(0.2) code = input('whats the code?') text = r.post( 'https://api.doordash.com/v2/consumers/' + str(id_xd) + '/verify/', '{"verification_type":"email","code":"' + code + '","referral_code":"' + getoken.token + '"}', verify=False, headers={ 'Accept': 'application/json', 'X-CSRFToken': csrf, 'Client-Version': 'web version 2.0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/64.0.3417.73', 'Sec-Fetch-Mode': 'cors', 'Content-Type': 'application/json', 'Origin': 'https://www.doordash.com', 'Sec-Fetch-Site': 'same-site', 'Referer': 'https://www.doordash.com/consumer/referred/' + getoken.token + '/?utm_source=copy', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9' }) print(text.text) if text.text == '{"is_phone_number_unique":true,"is_verified":true}': f = open('logins.txt', 'a') f.write(genemail.email + ":" + getinfo.password + " " + text.text + '\n') f.close() print('Everything gucci') if text.text == '{"non_field_errors":"Provided code did not match."}': print("Wrong code retard, f****n idiot") if text.text == '{"is_phone_number_unique":false,"is_verified":true}': print("Phone number used try again!")
def getoken(): getinfo() url = r.get(getinfo.ref_link, verify=False) location = url.url locationsplit = location.split('/') getoken.token = locationsplit[5]
def atc(): getinfo() global browser browser = webdriver.Chrome(getinfo.webdriver) browser.set_window_size(800,900) #get store detail browser.get('https://www.doordash.com/store/la-barca-restaurant-new-york-133934/?pickup=true&true=') time.sleep(2) awaitt('#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-kvZOFW.xcnRO > div > div > div.sc-gUlUPW.loQmCT > div:nth-child(8) > div > div:nth-child(4) > button') time.sleep(2) thing = WebDriverWait(browser, 20).until(EC.presence_of_element_located((By.XPATH,'//*[@id="root"]/div/div[3]/div/div[2]/div/div/div[2]/div[1]/div/div/div/h2/span'))) print(thing.text) if thing.text == 'Carrot (Zanahoria)': #close button awaitt('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-dxgOiQ.knXTJr > button') #soda awaitt('#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-kvZOFW.xcnRO > div > div > div.sc-gUlUPW.loQmCT > div:nth-child(7) > div > div:nth-child(1) > button') #some soda awaitt(f'#Toggle-{random.randint(5,10)}') #for homeless sendkeys("#FieldWrapper-7","dar a las personas sin hogar y marcar como recogido") #10 times newquantity('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-kgoBCf.fadSlv > div > div > div > div > div > div.sc-dnqmqq.ibsFAU > div:nth-child(3) > button',10) #atc awaitt('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-kgoBCf.fadSlv > div > div > div > div > div > div.sc-hfLElm.VdQyN > button') #5$ thing awaitt('#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-kvZOFW.xcnRO > div > div > div.sc-gUlUPW.loQmCT > div:nth-child(8) > div > div:nth-child(6) > button') #random option awaitt(f'#Toggle-{random.randint(14,15)}') #atc button #awaitt("#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-hrWEMg.glaAdg > div.sc-eTuwsz.bZiLVd > div:nth-child(3) > div.sc-cMhqgX.eDFKnr > button") if thing.text == 'Water': #close awaitt('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-dxgOiQ.knXTJr > button') #soda awaitt('#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-kvZOFW.xcnRO > div > div > div.sc-gUlUPW.loQmCT > div:nth-child(8) > div > div:nth-child(1) > button') #some soda awaitt(f'#Toggle-{random.randint(5,10)}') #for homeless sendkeys("#FieldWrapper-7","dar a las personas sin hogar y marcar como recogido") #10 times newquantity('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-kgoBCf.fadSlv > div > div > div > div > div > div.sc-dnqmqq.ibsFAU > div:nth-child(3) > button',10) #atc awaitt('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-kgoBCf.fadSlv > div > div > div > div > div > div.sc-hfLElm.VdQyN > button') #5$ thing awaitt('#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-kvZOFW.xcnRO > div > div > div.sc-gUlUPW.loQmCT > div:nth-child(9) > div > div:nth-child(6) > button') #random option #{random.randint(13,14)} try: awaitt(f'#Toggle-{random.randint(13,14)}') except selenium.common.exceptions.TimeoutException: awaitt(f'#Toggle-{random.randint(14,15)}') #atc awaitt('#root > div > div:nth-child(3) > div > div:nth-child(2) > div > div > div.sc-kgoBCf.fadSlv > div > div > div > div > div > div.sc-hfLElm.VdQyN > button') #atc button awaitt("#root > div > div.sc-bwzfXH.eOmgCJ > div.sc-hrWEMg.glaAdg > div.sc-eTuwsz.bZiLVd > div:nth-child(3) > div.sc-cMhqgX.eDFKnr > button") pass time.sleep(5) browser.get('https://www.doordash.com/consumer/login/?next=/consumer/checkout/') time.sleep(3) if "https://identity.doordash.com/" in browser.current_url: browser.close() atc() else: atc.lemail = '#login-form > label:nth-child(1) > input' atc.lpass = '******' pass