I am trying to download all the images and annotations from this link: https://data.mendeley.com/datasets/pwyyg8zmk5/2
For example, I want to download all the images in the bicycle folder. Then there's a download button for each image file. I tried to do this with selenium this way (Xpath="//a[@aria-label='Download file']"), but it only downloads the first image, how can I download all of them? Is it possible with selenium?
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver= webdriver.Chrome(executable_path="F:\Chrome Driver\chromedriver.exe")
driver.get("https://data.mendeley.com/datasets/pwyyg8zmk5/2")
driver.maximize_window()
driver.implicitly_wait(20)
folder= driver.find_element_by_xpath("//span[@title='Bicycle']")
folder.click()
folder= driver.find_element_by_xpath("//span[@title='images']")
folder.click()
driver.implicitly_wait(10)
folder= driver.find_element_by_xpath("//a[@aria-label='Download file']")
folder.click()