Instagram-Comments-Scraper icon indicating copy to clipboard operation
Instagram-Comments-Scraper copied to clipboard

Getting stuck at Instagram login screen

Open Aelfriclake opened this issue 4 years ago • 3 comments

I am getting stuck at login screen and the documentation doesn't really help at this point.

Aelfriclake avatar Jun 17 '20 13:06 Aelfriclake

@Aelfriclake the python script in this project doesn't seem to contain any code for authentication you could use this code prefixed to the top of the existing code.


driver.get('https://www.instagram.com/')


username_input = driver.find_element_by_css_selector("input[name='username']")
password_input = driver.find_element_by_css_selector("input[name='password']")

username_input.send_keys("") # Enter Username Here
password_input.send_keys("") # Enter Password Here

login_button = driver.find_element_by_xpath("//button[@type='submit']")
login_button.click()

sleep(3)

save_button = driver.find_element_by_xpath("//button[normalize-space()='Save Info']")
save_button.click()

sleep(3)

notifications_button = driver.find_element_by_xpath("//button[normalize-space()='Not Now']")
notifications_button.click()

sleep(2)

ghost avatar Aug 06 '20 07:08 ghost

Thanks, @Pow377, could you create a PR for the login feature?

AgiMaulana avatar Jan 02 '21 15:01 AgiMaulana

I am also trying to add a login feature but need volunteer developer to try the feature since I couldn't found free VPN service for Linux/Ubuntu, you can check the feature is under development in this branch

AgiMaulana avatar Jan 02 '21 15:01 AgiMaulana