Commons:Gallica
Jump to navigation
Jump to search
Gallica is the server for the French National Library (Bibliothèque nationale de France, BNF). It contains millions of digitized documents, including books, manuscripts, posters, pictures, etc. The web site is available in several languages: French, English, Spanish, Portugese, German.
Le modèle {{Gallica}} entraîne l'intégration automatique dans Category:Files from Gallica.
Pictures
[edit]How to download pictures from Gallica in high resolution, which is not allowed by the zoom viewer:
- Pictures are usually available through link of this type: http://gallica.bnf.fr/iiif/ark:/12148/btv1b10415131v/f1/full/full/0/native.jpg where
ark:/12148/btv1b10415131v
is the ARK identifier. You may need to change "f1" to "f2" and so on to get later pages of a set. Check the page you're viewing the image on, and just copy the relevant bit that begins ark:/12148/[string of letters and numbers]/ and replace the relevant part of that link. - Confer API IIIF de récupération des images de Gallica (api.bnf.fr).
- Formerly, one could use toollabs:yifeibot/gallica (Python, source codes: index.py core.py shared.py). It is no longer maintained.
Manuscripts
[edit]In some cases, the PDFs are not usable. So one needs to download images one by one. This script does this:
lastpage="dernière page à télécharger"
for i in $(seq 1 $lastpage); do
p="http://gallica.bnf.fr/ark:/12148/identifiant du livre/f$i.highres"
wget -U DummyBrowser/0.1 $p -O page_`printf %04d $i`.jpg;
done
See also
[edit]- s:fr:Wikisource:Gallica: French Wikisource