fromosimportlistdirfromos.pathimportisfile,joinfromseleniumimportwebdriverfromselenium.webdriver.common.byimportByfromselenium.webdriver.chrome.optionsimportOptionsimporttimemypath='abcd'#acá va la dirección del folder con las imágenes que quieres subir (si tu folder tiene la forma C:\carpeta... tienes que duplicar los '\')onlyfiles=[fforfinlistdir(mypath)ifisfile(join(mypath,f))]driver=webdriver.Chrome()driver.maximize_window()hilo='https://www.hispachan.org/ac/res/161492.html'#acá va la dirección del hilo en el cual quieres hacer el dumpforfilenameinonlyfiles:ubicacion=mypath+'\\'+filenameprint(ubicacion)driver.get(hilo)element=driver.find_element(By.XPATH,'//*[@id="postform"]/table/tbody/tr[3]/td[2]/input')element.send_keys(ubicacion)element=driver.find_element(By.XPATH,'//*[@id="postform"]/table/tbody/tr[1]/td[2]/input').click()print('enviando una imagen')time.sleep(20)