InstaPy / InstaPy/instapy-docs
Issue
- Dominant language
- No language data
- Stars
- 65
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
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
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the traceback entry points in instapy.py, like_util.py, and util.py, especially is_private_profile and the follow_by_list call. Reproduce the reported StaleElementReferenceException with InstaPy 0.6.12 and establish the expected behavior before defining a fix and regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100