Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99020

Selenium interaction with accordion list

$
0
0

I'm trying to scrape the data off this site.

The website shows a charging station, in this case you can click each to unravel the accordion and see the data per charger. I am trying to use this specific site as it has access to a specific set of charger data which is not available anywhere else (not the one linked but similar enough).

I got as far as trying to use Beautiful Soup, but then switched to Selenium, as it seems the content is generated dynamically.

I've tried to Click various DIV tags

elements = driver.find_element(By.CLASS_NAME,"accordion-item-content")    elements.click()

this is not producing any affect. actually, it's determined to be non clickable.

Where should I be looking in terms of being able to scrape this website for charger availability based on the roll out information from the accordion?

The data will be extracted and saved into a database to track availability and usage of each of the available sockets at the charging location

I tried clicking on the divs, didn't work. There are also no div ID's so am using "By.CLASS_NAME". Unsuccessful in trying to interact with the page, however it does load using chrome.


Viewing all articles
Browse latest Browse all 99020

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>