In [22]:
files = ["Literacy_-_UNESCO_-_PHOTO0000000018_0000",
"Literacy_-_UNESCO_-_PHOTO0000000018_0001",
"Literacy_-_UNESCO_-_PHOTO0000000021_0000",
"Literacy_-_UNESCO_-_PHOTO0000000021_0001",
"Literacy_-_UNESCO_-_PHOTO0000000024_0000",
"Literacy_-_UNESCO_-_PHOTO0000000024_0001",
"Literacy_-_UNESCO_-_PHOTO0000000066_0000",
"Literacy_-_UNESCO_-_PHOTO0000000066_0001",
"Literacy_-_UNESCO_-_PHOTO0000000068_0000",
"Literacy_-_UNESCO_-_PHOTO0000000068_0001",
"Literacy_-_UNESCO_-_PHOTO0000000077_0000",
"Literacy_-_UNESCO_-_PHOTO0000000077_0001",
"Literacy_-_UNESCO_-_PHOTO0000000085_0000",
"Literacy_-_UNESCO_-_PHOTO0000000085_0001",
"Literacy_-_UNESCO_-_PHOTO0000000096_0000",
"Literacy_-_UNESCO_-_PHOTO0000000096_0001",
"Literacy_-_UNESCO_-_PHOTO0000000123_0000",
"Literacy_-_UNESCO_-_PHOTO0000000123_0001",
"Literacy_-_UNESCO_-_PHOTO0000000126_0000",
"Literacy_-_UNESCO_-_PHOTO0000000126_0001",
"Literacy_-_UNESCO_-_PHOTO0000000128_0000",
"Literacy_-_UNESCO_-_PHOTO0000000128_0001",
"Literacy_-_UNESCO_-_PHOTO0000000129_0000",
"Literacy_-_UNESCO_-_PHOTO0000000129_0001",
"Literacy_-_UNESCO_-_PHOTO0000000135_0000",
"Literacy_-_UNESCO_-_PHOTO0000000135_0001",
"Literacy_-_UNESCO_-_PHOTO0000000171_0000",
"Literacy_-_UNESCO_-_PHOTO0000000171_0001",
"Literacy_-_UNESCO_-_PHOTO0000000185_0000",
"Literacy_-_UNESCO_-_PHOTO0000000185_0001",
"Literacy_-_UNESCO_-_PHOTO0000000190_0000",
"Literacy_-_UNESCO_-_PHOTO0000000190_0001",
"Literacy_-_UNESCO_-_PHOTO0000000211_0000",
"Literacy_-_UNESCO_-_PHOTO0000000211_0001",
"Literacy_-_UNESCO_-_PHOTO0000000225_0000",
"Literacy_-_UNESCO_-_PHOTO0000000225_0001",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000261_0000",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000261_0001",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000314_0000",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000314_0001",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000317_0000",
"Fundamental_Education_-_UNESCO_-_PHOTO0000000317_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000346_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000346_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000349_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000349_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000355_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000355_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000357_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000357_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000360_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000360_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000365_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000365_0001",
"Children_village,_Primary_Education_-_UNESCO_-_PHOTO0000000407_0000",
"Children_village,_Primary_Education_-_UNESCO_-_PHOTO0000000407_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000410_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000410_0001",
"Primary_Education_-_UNESCO_-_PHOTO0000000433_0000",
"Primary_Education_-_UNESCO_-_PHOTO0000000433_0001",
"Health,_Inclusivity_(Braille,_Unesco_Review)_-_UNESCO_-_PHOTO0000000840_0000",
"Health,_Inclusivity_(Braille,_Unesco_Review)_-_UNESCO_-_PHOTO0000000840_0001",
"Health,_Inclusivity_-_UNESCO_-_PHOTO0000000853_0000",
"Health,_Inclusivity_-_UNESCO_-_PHOTO0000000853_0001",
"Culture,_East-West,_Theatre,_Performing_arts_-_UNESCO_-_PHOTO0000001275_0000",
"Culture,_East-West,_Theatre,_Performing_arts_-_UNESCO_-_PHOTO0000001275_0001",
"Culture,_East-West,_Theatre,_Performing,_Bharatanatyam_dance_-_UNESCO_-_PHOTO0000001278_0000",
"Culture,_East-West,_Theatre,_Performing,_Bharatanatyam_dance_-_UNESCO_-_PHOTO0000001278_0001",
"Culture,_East-West,_Theatre,_Performing,_Modern_dance_-_UNESCO_-_PHOTO0000001281_0000",
"Culture,_East-West,_Theatre,_Performing,_Modern_dance_-_UNESCO_-_PHOTO0000001281_0001",
"Culture,_East-West,_Theatre,_Performing,_mime_-_UNESCO_-_PHOTO0000001283_0000",
"Culture,_East-West,_Theatre,_Performing,_mime_-_UNESCO_-_PHOTO0000001283_0001",
"Culture,_Museums,_Nat_Museum_Anthropology_-_UNESCO_-_PHOTO0000001346_0000",
"Culture,_Museums,_Nat_Museum_Anthropology_-_UNESCO_-_PHOTO0000001346_0001",
"Culture,_Restauration,_Cultural_campaigns_-_UNESCO_-_PHOTO0000001368_0000",
"Culture,_Restauration,_Cultural_campaigns_-_UNESCO_-_PHOTO0000001368_0001",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001407_0000",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001407_0001",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001417_0000",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001417_0001",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001438_0000",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001438_0001",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001444_0000",
"Culture,_Restauration,_Cultural_campaigns,_Florence_-_UNESCO_-_PHOTO0000001444_0001",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001448_0000",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001448_0001",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001459_0000",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001459_0001",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001465_0000",
"Natural_Science,_Arid_zones_-_UNESCO_-_PHOTO0000001465_0001",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001474_0000",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001474_0001",
"Culture,_Restauration,_Cultural_campaigns_-_UNESCO_-_PHOTO0000001479_0000",
"Culture,_Restauration,_Cultural_campaigns_-_UNESCO_-_PHOTO0000001479_0001",
"Natural_science,_biosphere,_water_pollution_-_UNESCO_-_PHOTO0000001489_0000",
"Natural_science,_biosphere,_water_pollution_-_UNESCO_-_PHOTO0000001489_0001",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001509_0000",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001509_0001",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001512_0000",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001512_0001",
"Natural_Science,_Biosphere,_Campaign_-_UNESCO_-_PHOTO0000001513_0000",
"Natural_Science,_Biosphere,_Campaign_-_UNESCO_-_PHOTO0000001513_0001",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001555_0000",
"Natural_Science,_Biosphere_-_UNESCO_-_PHOTO0000001555_0001",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002037_0000",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002037_0001",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002039_0000",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002039_0001",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002062_0000",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002062_0001",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002081_0000",
"Culture,_Medina_at_Fes_Campaign_-_UNESCO_-_PHOTO0000002081_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002094_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002094_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002095_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002095_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002096_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002096_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002097_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002097_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002098_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002098_0001",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002100_0000",
"Culture,_Triangle_campaign_-_UNESCO_-_PHOTO0000002100_0001",
"Culture,_Campaign,_Mandut_-_UNESCO_-_PHOTO0000002130_0000",
"Culture,_Campaign,_Mandut_-_UNESCO_-_PHOTO0000002130_0001",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002303_0000",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002303_0001",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002322_0000",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002322_0001",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002323_0000",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002323_0001",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002346_0000",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002346_0001",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002353_0000",
"Culture,_Venice_campaign_-_UNESCO_-_PHOTO0000002353_0001",
"Culture,_Palmyra_Campaign_-_UNESCO_-_PHOTO0000002374_0000",
"Culture,_Palmyra_Campaign_-_UNESCO_-_PHOTO0000002374_0001",
"Culture,_Greece,_Athens_Campaign_-_UNESCO_-_PHOTO0000002386_0000",
"Culture,_Greece,_Athens_Campaign_-_UNESCO_-_PHOTO0000002386_0001",
"UNESCO_History,_Roger_Caillois_-_UNESCO_-_PHOTO0000002654_0000",
"UNESCO_History,_Roger_Caillois_-_UNESCO_-_PHOTO0000002654_0001",
"UNESCO_History,_Mayor_+_Jacques_Yves_Cousteau_-_UNESCO_-_PHOTO0000002670_0000",
"UNESCO_History,_Mayor_+_Jacques_Yves_Cousteau_-_UNESCO_-_PHOTO0000002670_0001",
"Unesco_history,_Conference_on_chemical_weapons,_Mitterand_-_UNESCO_-_PHOTO0000002671_0000",
"Unesco_history,_Conference_on_chemical_weapons,_Mitterand_-_UNESCO_-_PHOTO0000002671_0001",
"Unesco_history,_Visit_Prince_Philip_-_UNESCO_-_PHOTO0000002673_0000",
"Unesco_history,_Visit_Prince_Philip_-_UNESCO_-_PHOTO0000002673_0001",
"Unesco_history,_Visit_Prince_Philip_-_UNESCO_-_PHOTO0000002675_0000",
"Unesco_history,_Visit_Prince_Philip_-_UNESCO_-_PHOTO0000002675_0001",
"Unesco_history,_Visit_of_youth_of_Taizé_-_UNESCO_-_PHOTO0000002681_0000",
"Unesco_history,_Visit_of_youth_of_Taizé_-_UNESCO_-_PHOTO0000002681_0001",
"Unesco_history,_Ceremony_for_Valéry_Giscard_d'Estaing_-_UNESCO_-_PHOTO0000002682_0000",
"Unesco_history,_Ceremony_for_Valéry_Giscard_d'Estaing_-_UNESCO_-_PHOTO0000002682_0001",
"Unesco_history,_Ceremony_for_Valéry_Giscard_d'Estaing_-_UNESCO_-_PHOTO0000002683_0000",
"Unesco_history,_Ceremony_for_Valéry_Giscard_d'Estaing_-_UNESCO_-_PHOTO0000002683_0001",
"UNESCO_History,_Départ_donné_par_DDG_du_Raid_automobile_Paris-Pékin_-_UNESCO_-_PHOTO0000002685_0000",
"UNESCO_History,_Départ_donné_par_DDG_du_Raid_automobile_Paris-Pékin_-_UNESCO_-_PHOTO0000002685_0001",
"UNESCO_History,_DG_welcoming_President_Mitterrand_-_UNESCO_-_PHOTO0000002687_0000",
"UNESCO_History,_DG_welcoming_President_Mitterrand_-_UNESCO_-_PHOTO0000002687_0001",
"UNESCO_History,_Visite_de_S._Exc._M._Léopold_Sedar_Senghor,_Président_de_la_République_du_Sénégal_-_UNESCO_-_PHOTO0000002688_0000",
"UNESCO_History,_Visite_de_S._Exc._M._Léopold_Sedar_Senghor,_Président_de_la_République_du_Sénégal_-_UNESCO_-_PHOTO0000002688_0001",
"Unesco_history,_MOFA_USSR_-_UNESCO_-_PHOTO0000002689_0000",
"Unesco_history,_MOFA_USSR_-_UNESCO_-_PHOTO0000002689_0001",
"Unesco_history,_M'Bow_-_UNESCO_-_PHOTO0000002701_0000",
"Unesco_history,_M'Bow_-_UNESCO_-_PHOTO0000002701_0001",
"UNESCO_History,_Architects_Richard_Buckminster_Fuller_and_Max_Bill_-_UNESCO_-_PHOTO0000002720_0000",
"UNESCO_History,_Architects_Richard_Buckminster_Fuller_and_Max_Bill_-_UNESCO_-_PHOTO0000002720_0001",
"UNESCO_History,_President_Charles_de_Gaulle_-_UNESCO_-_PHOTO0000002721_0000",
"UNESCO_History,_President_Charles_de_Gaulle_-_UNESCO_-_PHOTO0000002721_0001",
"UNESCO_History,_Willy_Brandt,_Chancellor_Germany_-_UNESCO_-_PHOTO0000002725_0000",
"UNESCO_History,_Willy_Brandt,_Chancellor_Germany_-_UNESCO_-_PHOTO0000002725_0001",
"UNESCO_History,_Edgar_Faure_and_René_Maheu_-_UNESCO_-_PHOTO0000002726_0000",
"UNESCO_History,_Edgar_Faure_and_René_Maheu_-_UNESCO_-_PHOTO0000002726_0001",
"UNESCO_history,_34th_Anniversary_Declaration_Human_Rights_-_UNESCO_-_PHOTO0000002729_0000",
"UNESCO_history,_34th_Anniversary_Declaration_Human_Rights_-_UNESCO_-_PHOTO0000002729_0001",
"UNESCO_history,_Sarvepalli_Radhakrishnan_and_Julian_Huxley_-_UNESCO_-_PHOTO0000002730_0000",
"UNESCO_history,_Sarvepalli_Radhakrishnan_and_Julian_Huxley_-_UNESCO_-_PHOTO0000002730_0001",
"UNESCO_History,_Moving_Henry_Moore_sculpture_-_UNESCO_-_PHOTO0000002731_0000",
"UNESCO_History,_Moving_Henry_Moore_sculpture_-_UNESCO_-_PHOTO0000002731_0001",
"UNESCO_history,_Vargas_(Brésil)_élu_president_EX_-_UNESCO_-_PHOTO0000002735_0000",
"UNESCO_history,_Vargas_(Brésil)_élu_president_EX_-_UNESCO_-_PHOTO0000002735_0001",
"UNESCO_History,_Mr._Yahya_Aliyu_of_Nigeria_elected_EX_chairman_-_UNESCO_-_PHOTO0000002736_0000",
"UNESCO_History,_Mr._Yahya_Aliyu_of_Nigeria_elected_EX_chairman_-_UNESCO_-_PHOTO0000002736_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003507_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003507_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003511_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003511_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003514_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003514_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003533_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003533_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003534_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003534_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003542_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003542_0001",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003570_0000",
"MC,_Radio,_information,_education_-_UNESCO_-_PHOTO0000003570_0001",
"MC,_TV,_information,_education_-_UNESCO_-_PHOTO0000003597_0000",
"MC,_TV,_information,_education_-_UNESCO_-_PHOTO0000003597_0001",
]
In [23]:
import pywikibot
site = pywikibot.Site("commons", 'commons')

for line in files:
    full = "File:" + line + ".tiff"
    page = pywikibot.Page(site, full)
    if not page.exists():
        print(line)
Unesco_history,_Visit_Prince_Philip_-_UNESCO_-_PHOTO0000002675_0000