aj-4 / ig-followers

see who unfollowed you with python
198 stars 132 forks source link

Script doesn't open chrome #1

Open AceOmega opened 4 years ago

AceOmega commented 4 years ago

Hello, when I try to run the script, the script doesn't open the instagram page in Chrome. It just sits idle in my terminal. I'm running windows 10, and downloaded all requirements.

ponder2000 commented 4 years ago

@DarkAce808 1) Your driver may not be properly installed! Check again. 2) Check the link of Instagram in the code 3) If chrome driver is still not working you can go with geckodriver (a webdriver for Firefox) Hope this helps

brodycritchlow commented 4 years ago

@ponder2000

Thanks,

But I have the chromedriver installed correctly. And it wont open the chrome window. I dont want to use firefox. (I dont have it installed anyways) I am on windows Can you help me?

ponder2000 commented 4 years ago

@BatDev0 Type chromedriver on terminal or cmd prompt if it says something like 'Starting ChromeDriver ........ on port 9515' then chromedriver is installed properly. Else install the driver first.

If it is installed try a sample code like this

from selenium import webdriver
from time import sleep

driver = webdriver.Chrome('path to chromedriver')
driver.get('http://www.gmail.com/')

sleep(10)
driver.quit()

This will open gmail page If it's still not working then you may find solution to your problem here https://sites.google.com/a/chromium.org/chromedriver/help/chrome-doesn-t-start

Ashutoshkumargautam commented 4 years ago

thanks