Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- class InstaBot():
- def __init__(self, email, password):
- self.driver = webdriver.Chrome()
- self.email = email
- self.password = password
- def sing_in(self):
- self.driver.get('https://www.instagram.com/accounts/login/')
- email_login_input = self.driver.find_elements_by_css_selector('form input')[0]
- password_login_input = self.driver.find_elements_by_css_selector('form input')[1]
- email_login_input.send_keys(self.email)
- password_login_input.send_keys(self.password)
- login_button = self.driver.find_elements_by_css_selector('button')[2]
- login_button.click()
- def get_user_info(self):
- pass
- def get_user_tags(self):
- pass
- def get_user_followers(self):
- pass
- def get_user_followings(self):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement