Im trying to scrape PH news website https://www.philstar.com/ but its search results is a pop-up so I have to manually click search and everything using the driver.
search_button = driver.find_element(By.TAG_NAME, "img#search_toggle")
search_button.click()
search_input = driver.find_element(By.TAG_NAME,"input#zoomd")
search_input.send_keys(KEYWORD)
search_input.send_keys(Keys.RETURN)
After searching using any keyword there is a button that says "More From TOP SEARCHES" that I want to click to load more news but I cant seem to find it with the driver
wait = WebDriverWait(driver, 10)
XPATH = f'//div[@class="zoomd-widget-content-wrapper"]/zoomd-search-results[3]/section/button'
button = wait.until(EC.element_located_to_be_selected((By.XPATH,XPATH)))
button.click()
it seems to be part of a zoomd widget. any idea how to scrape from this?