import string, sys, time, requests, random, urllib, os from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from PIL import Image from anti_captcha import * from generate_code import * chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--start-maximized") try: proxy_address = sys.argv[1] chrome_options.add_argument('--proxy-server=' + proxy_address) except: proxy_address = 'host' driver = webdriver.Chrome(chrome_options = chrome_options, executable_path = 'res/chromedriver.exe') try: driver.get('https://www.playmonopoly.us/signup') response = requests.get('https://uinames.com/api/?ext&amount=1®ion=united%20states').json() credentials = [response['name'].lower() + response['surname'].lower() + str(random.randint(0, 2000)) + '@gmail.com', response['password'], response['password'], response['name'], response['surname'], response['phone']] driver.find_element_by_id('email').send_keys(credentials[0], Keys.TAB) for credential in credentials: driver.switch_to_active_element().send_keys(credential, Keys.TAB)