forked from eaabak/instagram-auto-create-account
-
Notifications
You must be signed in to change notification settings - Fork 0
/
botAccountCreate.py
37 lines (28 loc) · 1.14 KB
/
botAccountCreate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from selenium import webdriver
from random import randint
import time
from selenium.webdriver.common.by import By
import accountInfoGenerator as account
browser= webdriver.Chrome("chrome web driver path here")
browser.get("http://www.instagram.com")
time.sleep(8) #time.sleep count can be changed depending on the Internet speed.
name = account.username()
#Fill the email value
email_field = browser.find_element_by_name('emailOrPhone')
email_field.send_keys(account.generatingEmail())
print(account.generatingEmail())
#Fill the fullname value
fullname_field = browser.find_element_by_name('fullName')
fullname_field.send_keys(account.generatingName())
print(account.generatingName())
#Fill username value
username_field = browser.find_element_by_name('username')
username_field.send_keys(name)
print(name)
#Fill password value
password_field = browser.find_element_by_name('password')
password_field.send_keys('aa12345bb12345cc'+name) #You can determine another password here.
submit = browser.find_element_by_xpath('//*[@id="react-root"]/section/main/article/div[2]/div[1]/div/form/div[6]/span/button')
submit.click()
time.sleep(8)
print('Registering....')