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()
        

4
5
Lionel Aguero 33605 points

                                    <html>
	<head>
    <title>Grepper Answer</title>
    </head>
</html>

4 (5 Votes)
0
0
0
Awgiedawgie 440215 points

                                     Notification ID ss

0
0
0
0
Phoenix Logan 186120 points

                                     Notification ID 

0
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source