estayparadox / insta-bot Goto Github PK
View Code? Open in Web Editor NEWPython bot using Selenium increasing Instagram Followers.
License: MIT License
Python bot using Selenium increasing Instagram Followers.
License: MIT License
it says
Message: 'chrome driver' executable needs to be in PATH.
Can I have some help pls
A clear and concise description of what the bug is.
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.
Seems like all Xpaths are out of date right now. Would you be so kind as to update them?
Traceback (most recent call last):
File "D:\Instagram_Bot\Insta-Bot-master\src\start.py", line 36, in
button_login = webdriver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[3]/div/div/div[1]/div/div[2]/div/div/div/div/div[2]/div/button[1]')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 741, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, 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[2]/div/div/div[3]/div/div/div[1]/div/div[2]/div/div/div/div/div[2]/div/button[1]"}
(Session info: chrome=119.0.6045.160); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
GetHandleVerifier [0x00007FF7CAD682B2+55298]
(No symbol) [0x00007FF7CACD5E02]
(No symbol) [0x00007FF7CAB905AB]
(No symbol) [0x00007FF7CABD175C]
(No symbol) [0x00007FF7CABD18DC]
(No symbol) [0x00007FF7CAC0CBC7]
(No symbol) [0x00007FF7CABF20EF]
(No symbol) [0x00007FF7CAC0AAA4]
(No symbol) [0x00007FF7CABF1E83]
(No symbol) [0x00007FF7CABC670A]
(No symbol) [0x00007FF7CABC7964]
GetHandleVerifier [0x00007FF7CB0E0AAB+3694587]
GetHandleVerifier [0x00007FF7CB13728E+4048862]
GetHandleVerifier [0x00007FF7CB12F173+4015811]
GetHandleVerifier [0x00007FF7CAE047D6+695590]
(No symbol) [0x00007FF7CACE0CE8]
(No symbol) [0x00007FF7CACDCF34]
(No symbol) [0x00007FF7CACDD062]
(No symbol) [0x00007FF7CACCD3A3]
BaseThreadInitThunk [0x00007FFC12817344+20]
RtlUserThreadStart [0x00007FFC12E026B1+33]
Can you update Xpaths in script?
Error:
Warning (from warnings module):
File "C:\Users\strys\OneDrive\Desktop\Insta-Bot-master\start.py", line 22
webdriver = webdriver.Chrome(executable_path=chromedriver_path)
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
Traceback (most recent call last):
File "C:\Users\strys\OneDrive\Desktop\Insta-Bot-master\start.py", line 27, in
username = webdriver.find_element_by_name('username')
AttributeError: 'WebDriver' object has no attribute 'find_element_by_name'
Traceback (most recent call last):
File "D:\Users\Chair\PycharmProjects\InstaBot\venv\lib\site-packages\pandas\core\indexes\base.py", line 3080, in get_loc
return self._engine.get_loc(casted_key)
File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas_libs\hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas_libs\hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: '0'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:/Users/Chair/PycharmProjects/InstaBot/venv/InstaBot2.py", line 30, in
prev_user_list = list(prev_user_list['0'])
File "D:\Users\Chair\PycharmProjects\InstaBot\venv\lib\site-packages\pandas\core\frame.py", line 3024, in getitem
indexer = self.columns.get_loc(key)
File "D:\Users\Chair\PycharmProjects\InstaBot\venv\lib\site-packages\pandas\core\indexes\base.py", line 3082, in get_loc
raise KeyError(key) from err
KeyError: '0'
Process finished with exit code 1
I tried running it on my system, but I am getting an error.
DevTools listening on ws://127.0.0.1:53906/devtools/browser/f0152ab9-0c43-41ac-bb0c-bb0b9036406d
[6644:12600:0121/125942.184:ERROR:device_event_log_impl.cc(211)] [12:59:42.184] USB: usb_device_handle_win.cc:1020 Failed to
read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
Traceback (most recent call last):
File "c:\Users\Asus\Documents\Insta-Bot-master\start.py", line 32, in <module>
button_login = webdriver.find_element_by_xpath('//html//body//div[1]//section//main//div//article//div//div[1]//div//form//div//div[3]//button//div')
File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\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:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line
976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\Asus\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\Asus\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.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//html//body//div[1]//section//main//div//article//div//div[1]//div//form//div//div[3]//button//div"}
(Session info: chrome=87.0.4280.141)
The Chrome browser is launching fine and the credentials get filled in, but it is unable to login.
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
can this be fixed somehow? Thank you
everything works just fine but it skips the part where it's supposed to like, comment, follow the people. instead, it just shows the pictures from the tags and move to another picture in another tag
The script contains old xpaths, causing errors when the driver attempts to access the elements.
= RESTART: C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\start.py =
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\start.py", line 32, in
button_login = webdriver.find_element_by_xpath('//html//body//div[1]//section//main//div//article//div//div[1]//div//form//div//div[3]//button//div')
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\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:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\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[1]//section//main//div//article//div//div[1]//div//form//div//div[3]//button//div"}
(Session info: chrome=87.0.4280.88)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.