Skip to content

Commit

Permalink
Add doc at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebbo committed Jun 20, 2024
1 parent 1a62190 commit 960132d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions OZprivate/ServerScripts/Utilities/get_wiki_images.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/usr/bin/env python3

"""
This utility retrieves images and vernacular names from Wikidata for a given taxon or clade.
It can be called in two ways:
- To process a single taxon, use the 'leaf' subcommand. This will get the image and vernaculars for the given taxon. e.g.
get_wiki_images.py leaf "Panthera leo"
get_wiki_images.py leaf "Panthera leo" "File:Panthera leo.jpg"
get_wiki_images.py leaf "Panthera leo" "File:Panthera leo.jpg" 42000
- To process a full clade, use the 'clade' subcommand. This will get the images and vernaculars for all the taxa in the clade.
e.g. get_wiki_images.py clade "Panthera" OneZoom_latest-all.json
"""

import argparse
import bz2
import configparser
Expand Down

0 comments on commit 960132d

Please sign in to comment.