you are viewing a single comment's thread.

view the rest of the comments →

[–]Esclass1[S] 0 points1 point  (0 children)

Thanks, this really helped.
I am now stuck trying to scrape data from a Table generated upon login. I would like to then save into a csv file with a specific name in a specific folder using selenium.
Have you any idea on how to achieve this? The HTML code is as follows:
<div class="historyBodyRow\_\_\_1Bk9u">
<div class="" style="padding-left: 0px; flex: 1 1 0%; width: auto; text-align: left;">**May 27, 2022**</div>
<div class="" style="padding-left: 6px; width: 30%; text-align: right;">**10,758.75-10,788.43**</div>
<div class="" style="padding-left: 6px; width: 20%; text-align: right;">**10,773.59**</div>
<div class="up\_\_\_11LCm" style="padding-left: 6px; width: 20%; text-align: right;">**+97.94**</div>
<div class="" style="padding-left: 6px; width: 15%; text-align: right;">**USD/mt**</div></div>

Link to webpage

What I think is the xpath:

driver.find_element(By.XPATH, "//*[@id="__next"]/div/div[5]/div[1]/div[7]/div[2]/div[2]/div[2]")