Git Product home page Git Product logo

python-instagram-bot's People

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  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  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  avatar  avatar  avatar  avatar

python-instagram-bot's Issues

[26188:27604:0504/181357.623:ERROR:device_event_log_impl.cc(162)] [18:13:57.623] Bluetooth: bluetooth_adapter_winrt.cc:1055 Getting Default Adapter failed.

When using the executable file (it doesnt matter if you run it as an operator or not) and trying to log in the following error occurs:

Enter your username: [26188:27604:0504/181357.623:ERROR:device_event_log_impl.cc(162)] [18:13:57.623] Bluetooth: bluetooth_adapter_winrt.cc:1055 Getting Default Adapter failed.

Steps to replicate:

  1. Open the executable.
  2. Choose option 1 (Log In)
  3. Answer no when asked if 2fa is enabled.

You can still type in your username and password, but i get the following error if i try to do so:

Check your browser...
Traceback (most recent call last):
  File "InstaBot_Beta.py", line 385, in <module>
  File "InstaBot_Beta.py", line 50, in login
  File "site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get
  File "site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
  File "site-packages\selenium\webdriver\remote\errorhandler.py", line 241, in check_response
selenium.common.exceptions.UnexpectedAlertPresentException: Alert Text: Please check your Application console window
Message: unexpected alert open: {Alert text : Please check your Application console window}
  (Session info: chrome=81.0.4044.129)

[30192] Failed to execute script InstaBot_Beta

Using Windows 10 Home
Version 10.0.17763 Build 17763

Traceback Error

Apologies if this has already been addressed elsewhere but I noticed that for options 2, 3 and 5, I receive the following Traceback error:

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[4]/div/div[2]"}


Happy to paste the entire error message displayed / submit if easier - thank you again for all the work on such a fantastic tool.

Suggestions

Nice work, but i wouldn't call it 'robust' as you state in project description, i would call it 'naive'. Any network failure will stop bot from working, and you will get a lot of it as soon as you start using proxies, which is a must in case of botting. Every restart will also reset your counters what could lead to rate limit roadblocks.

These are things to be implemented if you want to use the bot in the field:

  1. proper logging of everything
  2. usage of proxies
  3. randomization of user-agents

issue related xpath pls help

console error:

Getting Followers list
Please wait...
Traceback (most recent call last):
File "c:/Users/shrim/Downloads/Compressed/Instagram_Bot-master/Instagram_Bot-master/InstaBot.py", line 629, in
obj.start_unfollow() #Haha! Again self explanatory
File "c:/Users/shrim/Downloads/Compressed/Instagram_Bot-master/Instagram_Bot-master/InstaBot.py", line 260, in start_unfollow
self.create_exclusions_list()
File "c:/Users/shrim/Downloads/Compressed/Instagram_Bot-master/Instagram_Bot-master/InstaBot.py", line 516, in create_exclusions_list
self.get_unfollowers()
File "c:/Users/shrim/Downloads/Compressed/Instagram_Bot-master/Instagram_Bot-master/InstaBot.py", line 151, in get_unfollowers
followers_names= self.get_followers_list() #Getting Followers list
File "c:/Users/shrim/Downloads/Compressed/Instagram_Bot-master/Instagram_Bot-master/InstaBot.py", line 92, in get_followers_list
scrollbox= self.driver.find_element_by_xpath('/html/body/div[6]/div/div[2]')
File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "C:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[6]/div/div[2]"}

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.