Import artist (wiki) bios¶
When tate/art/artists/management/commands/import_artist_bios.py is run, it first requests this Tate-specific wiki resource
The code then goes through the list and for each artist featured, uses their (wiki) 'page_title' value to fetch their wiki page bio.
Importantly, we therefore only ever fetch artist bios based on wiki page titles included in this list. The resource itself is edited by Tate (the Content team can probably assist with this).
The actual fetching of the bio uses another wiki endpoint and is done in batches of 20 artists at a time (as they are processed alphabetically). Attempting to fetch more than 20 bios is futile as only 'extracts' (bios) for the first 20 artists requested will be returned. This rate is probably subject to change in Wiki's API implementation.
This fetching is achieved by appending the artists wiki page name to the 'titles' parameter (seperated by a pipe), for example.
For a single artist:
For 20 artists:
If for some reason an artist's wiki bio shouldn't appear on their ArtistPage page despite it featuring in the entity resource mentioned above (i.e it's been explicitly requested to have it not show) there is provision for this in import_artist_bios.py
Just add the artist's id to skip_ids