InstaPy / InstaPy/instapy-docs

Issue

未关闭
#25 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
65
派生
54
PR 合并指标
30 天内没有已合并 PR

描述

Hi, i have this issue
I am using the InstaPy Version: 0.6.12

`Traceback (most recent call last):
File "final-v5-19-nuevo.py", line 116, in
session.follow_by_list(liomet_followers_2, times=1, sleep_delay=600, interact=True)
File "/home/ale/global-2021/lib/python3.6/site-packages/instapy/instapy.py", line 1242, in follow_by_list
self.user_interact_media,
File "/home/ale/global-2021/lib/python3.6/site-packages/instapy/instapy.py", line 2470, in interact_by_users
media,
File "/home/ale/global-2021/lib/python3.6/site-packages/instapy/like_util.py", line 473, in get_links_for_username
is_private = is_private_profile(browser, logger, following_status == "Following")
File "/home/ale/global-2021/lib/python3.6/site-packages/instapy/util.py", line 97, in is_private_profile
read_xpath(is_private_profile.__name__, "is_private")
File "/home/ale/global-2021/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 351, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/home/ale/global-2021/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 659, in find_element
{"using": by, "value": value})['value']
File "/home/ale/global-2021/lib/python3.6/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/home/ale/global-2021/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/ale/global-2021/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: The element reference of is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
`

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 instapy.py、like_util.py 和 util.py 中的 traceback 入口开始,重点关注 is_private_profile 和 follow_by_list 调用。使用 InstaPy 0.6.12 重现报告的 StaleElementReferenceException,并在定义修复方案和回归覆盖之前确定预期行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
20/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。