2

您好,我大约一年前使用了 instapy,效果很好。但是,由于我最近一直在尝试使用它,因此遇到了一些问题。我正在使用 basic_follow-unfollow_activity 快速入门模板。一旦我到达用户关注者,这个模板总是会崩溃。下面我有崩溃时遇到的错误。

Traceback (most recent call last):
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\instapy\unfollow_util.py", line 661, in get_users_through_dialog_with_graphql
    user_id = browser.execute_script(
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 634, in execute_script
    return self.execute(command, {
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: TypeError: window.__additionalData[Object.keys(...)[0]] is undefined


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Likel\instapy-quickstart-master\instapy-quickstart-master\quickstart_templates\basic_follow-unfollow_activity.py", line 52, in <module>
    session.follow_user_followers(['luke._5', 'usuclassof2025'], amount=800,
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\instapy\instapy.py", line 3675, in follow_user_followers
    person_list, simulated_list = get_given_user_followers(
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\instapy\unfollow_util.py", line 1003, in get_given_user_followers
    person_list, simulated_list = get_users_through_dialog_with_graphql(
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\instapy\unfollow_util.py", line 665, in get_users_through_dialog_with_graphql
    user_id = browser.execute_script(
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 634, in execute_script
    return self.execute(command, {
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Users\Likel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: TypeError: window._sharedData.entry_data.ProfilePage[0].graphql is undefined
4

0 回答 0