Commit 51dc49d8 authored by Minkush's avatar Minkush

add github registration script

parent 259fdf17
# -*- coding: utf-8 -*-
from selenium import webdriver
from import By
from import WebDriverWait
from import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
# Extract the Firefox driver and place in the same folder as this file.
browser = webdriver.Firefox()
# Github new account registration website's URL
# In GUI, the email, name would already be stored from sign-up module
# Then, user only needs to enter username and password
def github_account(username, email, password):
user_name = browser.find_element_by_id('user_login')
user_email = browser.find_element_by_id('user_email')
user_password = browser.find_element_by_id('user_password')
submit = browser.find_element_by_id('signup_button')
if __name__ == '__main__':
username = input('Enter username: ')
email = input('Enter email: ')
password = input('Enter password: ')
github_account(username, email, password)
print ('Congrats! Your new Github account has been created.')
print ('Check your mail to verify it.')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment