sdf
<html>
<head>
<title>Grepper Answer</title>
</head>
</html>
sdf
<html>
<head>
<title>Grepper Answer</title>
</head>
</html>
sdf
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
class InstagramBot:
def __init__(self, username, password):
self.username = username
self.password = password
self.driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe')
def CloseBrowser(self):
self.driver.close
def Login(self):
driver = self.driver
driver.get('https://instagram.com/')
sleep(1)
username_input = driver.find_element_by_xpath('//input[@name="username"]')
username_input.send_keys(self.username)
sleep(2)
password_input = driver.find_element_by_xpath('//input[@name="password"]')
password_input.send_keys(self.password)
sleep(1)
button = driver.find_element_by_xpath('//button[@type="submit"]')
button.click()
bot1 = InstagramBot()
bot1.Login()
sdf
<html>
<head>
<title>Grepper Answer</title>
</head>
</html>
sdf
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
class InstagramBot:
def __init__(self, username, password):
self.username = username
self.password = password
self.driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe')
def CloseBrowser(self):
self.driver.close
def Login(self):
driver = self.driver
driver.get('https://instagram.com/')
sleep(1)
username_input = driver.find_element_by_xpath('//input[@name="username"]')
username_input.send_keys(self.username)
sleep(2)
password_input = driver.find_element_by_xpath('//input[@name="password"]')
password_input.send_keys(self.password)
sleep(1)
button = driver.find_element_by_xpath('//button[@type="submit"]')
button.click()
bot1 = InstagramBot()
bot1.Login()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us