I'm trying to build a data extract for my company and I need to get the data inside a html list but when I execute my code I only get the text of a single li
element below I shared my code.
screenshots of the site source and my result.
My code:
from selenium import webdriver
driver = webdriver.Safari()
driver.get("http://turkosb.com/kaynarca-mobilya-ihtisas-organize-sanayi-bolgesi.html")
results = driver.find_element_by_xpath("//ul[@class='firma-info']/li")
print(results.text)
But despite my efforts the result I get is the same I only get the text from first li element like this:
YETKİLİ KİŞİ: Fikret ARSLAN