mlej8 / InstagramBot

3 stars 2 forks source link

How to use #1

Closed davidhearnsmith closed 5 years ago

davidhearnsmith commented 5 years ago

Say I want to login to an account, go to a specific profile then follow that account? How do I do that, looked around couldn't work it out. Also i think IG now tracks mouse movements so can differentiate between a user and a bot.

mlej8 commented 5 years ago

Hi,

I created quickstart examples in the Scripts/ folder. The search.py in Script/ is exactly what you are looking for. Simply use you're Instagram username and password, and put the profil you'd like to follow at "Specify Instagram Profile Here". Please note that you need to download a ChromeDriver that is compatible with your browser and put it in the Script/ folder.

Thanks,

Michael

davidhearnsmith commented 5 years ago

Got it thanks!

davidhearnsmith commented 5 years ago

Does it support proxies?

davidhearnsmith commented 5 years ago

For example;

https://stackoverflow.com/questions/17082425/running-selenium-webdriver-with-a-proxy-in-python

mlej8 commented 5 years ago

Will be implemented soon ! I just updated using webdriver_manager so you no longer have to download the executables, simply run the examples scripts.

davidhearnsmith commented 5 years ago

Am also interested in mouse movements, that way it looks to Instagram that there is a real person controlling rather than a bot, they have just implemented a load of follow and unfollow blocks for bots. Jarvee a big bot provider is barely functional anymore.

mlej8 commented 5 years ago

Yes, ActionChains can be used instead of WebElement.click() to simulate mouse interactions.

davidhearnsmith commented 5 years ago

Is this something that can be easily implemented?

mlej8 commented 5 years ago

Yes, see https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.action_chains.html

However, I found that using WebElement.click() was more consistent and did not gave me StaleElementExceptions as opposed to ActionChains.

davidhearnsmith commented 5 years ago

Can it just move the mouse to the button, that's all it needs to do 👍

On Thu, 8 Aug 2019, 20:36 Michael Li, notifications@github.com wrote:

Yes, see https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.action_chains.html

However, I found that using WebElement.click() was more consistent and did not gave me StaleElementExceptions as opposed to using ActionChains.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mlej8/InstagramBot/issues/1?email_source=notifications&email_token=AJFEYCWN6JXRWDMKSDAQ6MDQDRYUXA5CNFSM4IKBHYTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34VXMI#issuecomment-519658417, or mute the thread https://github.com/notifications/unsubscribe-auth/AJFEYCXYNTGGISGO5XZ7YPDQDRYUXANCNFSM4IKBHYTA .

davidhearnsmith commented 5 years ago

You can barely follow our unfollow or like with bots anymore as Instagram can detect mouse movements.

On Thu, 8 Aug 2019, 20:36 Michael Li, notifications@github.com wrote:

Yes, see https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.action_chains.html

However, I found that using WebElement.click() was more consistent and did not gave me StaleElementExceptions as opposed to using ActionChains.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mlej8/InstagramBot/issues/1?email_source=notifications&email_token=AJFEYCWN6JXRWDMKSDAQ6MDQDRYUXA5CNFSM4IKBHYTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34VXMI#issuecomment-519658417, or mute the thread https://github.com/notifications/unsubscribe-auth/AJFEYCXYNTGGISGO5XZ7YPDQDRYUXANCNFSM4IKBHYTA .