I'm trying to extract a csv file from a zip folder and choose its name as it is saved in the new directory. This code is working well to extract the file:
import zipfile
with zipfile.ZipFile(f'C:\\Users\\user\\Downloads\\{nombre_solar_zip}', 'r') as zip_ref:
zip_ref.extractall('C:\\Users\\user\\\\work')
But the name of the file inside the zip folder is constantly changing, so I'd like to change the name so I can read it. Is there any way to do this?