Hi.
It seems the code (insta_feed_scraper.py) entered into infinite loop when I tried to run it, and I found it was likely due to the part below (line 298).
# Make sure that we get into the welcome page
while True:
driver.get(main_url)
time.sleep(3)
try:
if driver.find_element_by_xpath("/html/body/div[1]/section/main/div/header/section/div[1]/h2"):
print(colored("\n[SUCCESS]: Got into the user page. \n", "green"))
break
except NoSuchElementException:
pass
The code tries to find "/html/body/div[1]/section/main/div/header/section/div[1]/h2" but it doesn't exist.
Could you tell me what element the code is supposed to find?
My guess is that it tries to find the user (account) name part. If my guess is correct, should the "h2" in the last be replaced with "h1"?
Thank you in advance.
Hi. It seems the code (insta_feed_scraper.py) entered into infinite loop when I tried to run it, and I found it was likely due to the part below (line 298).
The code tries to find "/html/body/div[1]/section/main/div/header/section/div[1]/h2" but it doesn't exist. Could you tell me what element the code is supposed to find? My guess is that it tries to find the user (account) name part. If my guess is correct, should the "h2" in the last be replaced with "h1"? Thank you in advance.