Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- import requests
- import time
- command_executor = 'http://127.0.0.1:4444/wd/hub'
- connected = False
- while not connected:
- try:
- req = requests.get(command_executor)
- connected = (req.status_code == 200)
- print('connected')
- except Exception as e:
- print('waiting for connecting ' + str(e))
- time.sleep(5)
- options = webdriver.ChromeOptions()
- driver = webdriver.Remote(desired_capabilities=options.to_capabilities(), command_executor=command_executor)
- times_submitted = 1717
- while times_submitted <= 2000:
- driver.get('https://docs.google.com/forms/d/e/1FAIpQLSdGYI60to2xMJp_vfLaYllHFwJsDoHtnWUiJfjFNhcOXcr_iw/viewform')
- inputs = driver.find_elements_by_css_selector(".quantumWizTextinputPaperinputInput") + driver.find_elements_by_css_selector(".quantumWizTextinputPapertextareaInput")
- inputs[0].send_keys('Kyle Roscoe ' + str(times_submitted))
- inputs[1].send_keys('19')
- inputs[2].send_keys('discord: StarSlapped#0001 insta: kyle.roscoe_')
- inputs[3].send_keys("1. Jacked varsity rower w/ 270 lb bench. 2. I'm 6ft 9in <- those are two separate measurements. 3. I already know where you live so it would be easy to move in together! :D I didn't submit all these applications for nothing >:}")
- inputs[4].send_keys("I like that you have a family friendly stream and nice white teeth. Also u have a nice cake. hehe")
- driver.find_element_by_css_selector('.appsMaterialWizButtonPaperbuttonLabel').click()
- times_submitted += 1
- print("Count: " + str(times_submitted))
- driver.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement