Closed cyborg2006 closed 4 years ago
@cyborg2006 thanks for opening the issue. I will fix them soon
@autumnlewjb can you please fix the bug because I am working on an important project?
@autumnlewjb can you please fix the bug because I am working on an important project?
I'll try my best. It's most probably caused by faulty XPATH, which is stopping the element from being located. TimeOut is due to the max waiting time set in the WebDriverWait constructor. When the element is not located within the max waiting time, TimeOut exception is thrown.
I'll try my best to fix it.
Thank you guys for your effort. I will try and let you know.
Please see attached screenshot when I tried option 4. Data collected from following pop-up, and tried to collect from followers as well, but after couple of minutes received attached error.
I was download zip file from Github to my local disk. Now, clone the repository using git and edit program.py file as you corrected. Option 1, and 2 is working. When I tried option 4 (4. Unfollowers those who don't follow you back) attached is the error and screenshot.
Please see attached screenshot when I tried option 4. Data collected from following pop-up, and tried to collect from followers as well, but after couple of minutes received attached error.
I was download zip file from Github to my local disk. Now, clone the repository using git and edit program.py file as you corrected. Option 1, and 2 is working. When I tried option 4 (4. Unfollowers those who don't follow you back) attached is the error and screenshot.
Do check out the PR #24 as I have pushed a few more commits that hopefully, will resolve your issue. By the way, I am happy that most of the processes work for you. Please keep me update so that we could learn and improve together.
Unfortunately, option 4 starting good but not finalized accordingly :))
Do you want to unfollow : aleksandradanilova1358
Do you want to unfollow : elexicc
Unfortunately, option 4 starting good but not finalized accordingly :))
I was surprised to the sense that I did not encounter this error, so I can't see the error in action. Could you provide me more insights on the error?
Was the webpage loading or refreshing before the exception is thrown?
Yes webpage is normally loading. "Following" pop-up is opened and bot started to work. When bot grab all the information from "following", bot opened the "followers" pop-up. In addition scroll-down process started by bot, but couple of seconds later program halt and show the comment.
When I run under Linux or MacOS below is the error I received. Account opened by driver pop-up opened for followers and below is the comment and code stop working. Any response?
Enter the choice : 1 Traceback (most recent call last): File "program.py", line 221, in
main()
File "program.py", line 207, in main
bot.get_unfollowers()
File "program.py", line 95, in get_unfollowers
following = self._get_names()
File "program.py", line 133, in _get_names
self._make_driver_wait("/html/body/div[4]/div/div[2]")
File "program.py", line 191, in _make_driver_wait
wait.until(EC.element_to_be_clickable((By.XPATH, element_to_locate)))
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: