0 / 0 / 0
Регистрация: 30.12.2021
Сообщений: 68
|
||||||
1 | ||||||
Instagram API instapy не автризируется12.01.2023, 01:00. Показов 908. Ответов 3
Крч я изменил все изменения в xpath_compile.py на 159 строке(176 строке с учетом обновлений, я так понимаю)
код:
Код
InstaPy Version: 0.6.16 ._. ._. ._. ._. ._. ._. ._. ._. ._. Workspace in use: "C:/Users/Honor/InstaPy" INFO [2023-01-12 01:47:57] [cockieshic] Session started! OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO oooooooooooooooooooooooooooooooooooooooooooooooooooooo INFO [2023-01-12 01:48:01] [cockieshic] - Cookie file not found, creating cookie... WARNING [2023-01-12 01:48:12] [cockieshic] Login A/B test detected! Trying another string... WARNING [2023-01-12 01:48:17] [cockieshic] Could not pass the login A/B test. Trying last string... ERROR [2023-01-12 01:48:22] [cockieshic] Login A/B test failed! b"Message: Unable to locate element: //div[text()='Log In']\nStacktrace:\nRemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5\nelement.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16\n" Traceback (most recent call last): File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\instapy\login_util.py", line 337, in login_user login_elem = browser.find_element( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 861, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute self.error_handler.check_response(response) File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //button[text()='Log In'] Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5 element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\instapy\login_util.py", line 343, in login_user login_elem = browser.find_element( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 861, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute self.error_handler.check_response(response) File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //button[text()='Log In'] Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5 element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\instapy\login_util.py", line 350, in login_user login_elem = browser.find_element( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 861, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute self.error_handler.check_response(response) File "C:\Users\Honor\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: //div[text()='Log In'] Stacktrace: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:182:5 NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:394:5 element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16 CRITICAL [2023-01-12 01:48:22] [cockieshic] Unable to login to Instagram! You will find more information in the logs above. INFO [2023-01-12 01:48:22] [cockieshic] >>> self aborting prevented ........................................................................................................................ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ERROR [2023-01-12 01:48:24] [cockieshic] ~could not check if profile is public or private INFO [2023-01-12 01:48:24] [cockieshic] --> Not a valid user: --> Sorry, could not check if profile is public or private INFO [2023-01-12 01:48:24] [cockieshic] Finished following by List! INFO [2023-01-12 01:48:24] [cockieshic] Followed: 0 INFO [2023-01-12 01:48:24] [cockieshic] Already followed: 0 INFO [2023-01-12 01:48:24] [cockieshic] Not valid users: 1 0 Process finished with exit code 0
0
|
12.01.2023, 01:00 | |
Ответы с готовыми решениями:
3
Instapy instapy не запускается ошибка с regex Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
Fudthhh
|
12.01.2023, 07:33
#3
|
0
|
0 / 0 / 0
Регистрация: 30.12.2021
Сообщений: 68
|
|
13.01.2023, 23:36 [ТС] | 4 |
как ты научился так гениально решать проблемы столь высокого полета
Добавлено через 32 секунды нет, я не из россии
0
|
13.01.2023, 23:36 | |