I am trying to scrape cars in Gumtree (https://www.gumtree.com/p/nissan/2017-nissan-juke-1.5-dci-tekna-pulse-euro-6-s-s-5dr-hatchback-diesel-manual/1437058688)
There is a part below with all the car specifications and I can't reach the other tabs:
I have tried using Selenium in headless mode, beautifulSoup and a combination of both.
def getData(url):
driver.get(url)
soup = BeautifulSoup(driver.page_source, 'lxml')
parentList = soup.find('div', {'class': 'css-1j2uvky e14ksbtl9'})
for e in parentList:
print(e)
driver.implicitly_wait(5)
data = soup.find('ul', {'class': 'css-kcx0xb e14ksbtl6'})
for a in data:
print(a.text)
e.click()
Thank you!