gmail_generator.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:gmail-generator 作者: unix121 项目源码 文件源码
def locate_gmail():

    #Sleep for a while and wait for Firefox to open
    time.sleep(2)

    # Printing message
    msg(1,'Opening Gmail...')

    # Typing the website on the browser
    pyautogui.keyDown('ctrlleft');  pyautogui.typewrite('a'); pyautogui.keyUp('ctrlleft')
    pyautogui.typewrite('https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ltmpl=default')
    pyautogui.typewrite('\n')

    # Wait for a while until the website responds
    time.sleep(3)

    # Print a simple message
    msg(1,'Locating the form...')

    # Locate the form
    _gmail_=pyautogui.locateOnScreen('images/gmail_form.png')
    _form_=pyautogui.center(_gmail_)

    # Check and print message
    if not pyautogui.click(_form_):
        msg(1,'Located the form.')
    else:
        msg(3,'Failed to locate the form.')
        ext()


# Function used to randomize credentials
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号