Code Monkey home page Code Monkey logo

instabot's Introduction

Hello, sunshine☀️! How are you? Oh, your rays are already making my day brighter🌈!

I am Swasthik Shetty 👨🏻‍💻; A seasoned developer and designer. Loves to learn and explore new technologies and share the knowledge back to the community. I love to contribute and talk about the open-source while spending most of my time designing or on GitHub :octocat:.

I am a full time Cloud Solution Engineer at Google soving real world problems everyday. I am a GitHub Campus Expert 🚩; Microsoft Learn Student Ambassador, Lead of Hack Club Sahyadri , President of CodeChef SCEM Chapter, Developer at Codezoned 💻 , Technical Head of Sahyadri Open-Source Community and Community Member of Google Developer Student Club and Mozilla Club Sahyadri🔰

Looking for Internship 👀

portfolio     Linkedin     Twitter     gmail    

instabot's People

Contributors

autumnlewjb avatar dependabot[bot] avatar swaaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

instabot's Issues

Suggestion for Using Waits and EC instead of sleep

Greetings, I'm a Python and Selenium beginner and I can't let my eye off your code. It's neat and I've learnt plenty. However, I'm curious why did you implement sleep but not waits from Selenium with the help of expected_conditions? I always thought that waits in Selenium may save more time as it checks the DOM or the webpage for the element. Is there any downside of using those? Please correct me if I'm wrong here as I'm still a novice to Selenium and automation. And I'm happy to make a pull request if you like to.

After Login Nothing Happens

Traceback (most recent call last):
File "program.py", line 239, in
main()
File "program.py", line 218, in main
bot = Instabot(username,password)
File "program.py", line 35, in init
self._make_driver_wait("//button[contains(text(), 'Not Now')]")
File "program.py", line 209, in _make_driver_wait
wait.until(EC.element_to_be_clickable((By.XPATH, element_to_locate)))
File "/usr/lib/python3/dist-packages/selenium/webdriver/support/wait.py", line 86, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

Element <button class="sqdOP L3NKy y3zKF " type="submit"> is not clickable at point (844,379) because another element <div class="piCib"> obscures it

Hey there, I have this strange error. Maybe you can help me?

Traceback (most recent call last): File "C:\Users\user\Downloads\InstaBot-master\program.py", line 240, in <module> main() File "C:\Users\user\Downloads\InstaBot-master\program.py", line 219, in main bot = Instabot(username,password) File "C:\Users\user\Downloads\InstaBot-master\program.py", line 32, in __init__ self.driver.find_element_by_xpath('//button[@type="submit"]').click() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute return self._parent.execute(command, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: Element <button class="sqdOP L3NKy y3zKF " type="submit"> is not clickable at point (844,379) because another element <div class="piCib"> obscures it

Greetings and thanks in advance

Is instagram blocking bot ?

Hello , i love your script , it so cool to have make the wait for the elements.

i would like to ask a question. i custom a little bit your bot so i don't have to decide if i want to unfollow someone , it unfollow everyone that don't follow.

but i saw some error in my process .

at one moment i cannot go to the user profile and wait i relaunch the script my follower list is coming back to old one .

Do you think that instagram prevent bot ? (the should)
They can detect if you unfollow to mush people and block it ?

Just wanted to share this : D

ps: we can go directely to the person page with the url, don't need to type in the search bar

TimeoutException(message, screen, stacktrace)

When I run under Linux or MacOS below is the error I received. Account opened by driver pop-up opened for followers and below is the comment and code stop working. Any response?

Enter the choice : 1
Traceback (most recent call last):
File "program.py", line 221, in
main()
File "program.py", line 207, in main
bot.get_unfollowers()
File "program.py", line 95, in get_unfollowers
following = self._get_names()
File "program.py", line 133, in _get_names
self._make_driver_wait("/html/body/div[4]/div/div[2]")
File "program.py", line 191, in _make_driver_wait
wait.until(EC.element_to_be_clickable((By.XPATH, element_to_locate)))
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.