The above code could extract coordinates from a specific photo, how can I make it able to extract data from every photo existing in the directory?
from GPSPhoto import gpsphoto
data= gpsphoto.getGPSData('IMG_1.JPG')
print(data['Latitude'], data['Longitude'])