I've written a script in python with selenium to parse some results populated upon filling in an inputbox and preessing the Go button. My script does this portion well at this moment. However, my main goal is to parse the title of that container visible as Toys & Games as well.
This is my try so far (I could not find any idea to make a loop to do the same for all the containers):
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys url = "https://www.fbatoolkit.com/" driver = webdriver.Chrome() driver.get(url) time.sleep(3) driver.find_element_by_css_selector(".estimator-container .estimator-input").send_keys("25000",Keys.RETURN) time.sleep(2) item = driver.find_element_by_css_selector(".estimator-result div").text print(item) driver.quit() The result I get:
4 (30 Days Avg) Result I would like to have:
Toys & Games 4 (30 Days Avg) Link to an image in which you can see how they look like in that site. Expected fields are also marked with a pencil to let you know the location of the fields I'm trying to parse.