« Wikisource:Gallica/gallica.py » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 30 :
== Code ==
<syntaxhighlight lang="python" enclose="div"># Télécharge un livre sur Gallica en haute définition
# À enregistrer sous le nom gallica.py et exécuter avec Python 3. Pour plus
#
# d’informations, voir https://fr.wikisource.org/wiki/Wikisource:Gallica/gallica.py
# Utilisation de base :
# python gallica.py bpt6k1073366t 11 638
#
# Pour plus d’informations, voir https://fr.wikisource.org/wiki/Wikisource:Gallica/gallica.py
import argparse
import urllib.request