Create a Trove OCR corrections ticker

In [1]:
# Run this cell first to set things up
import requests
import time
from IPython.display import display, HTML, clear_output
params = {
    'q': 'has:corrections',
    'zone': 'newspaper',
    'encoding': 'json',
    'n': '0',
    'key': 'ju3rgk0jp354ikmh'

def update_corrections():
        while True:
            response = requests.get('', params=params)
            data = response.json()
            total = int(data['response']['zone'][0]['records']['total'])
            display(HTML('<p style="line-height: 15rem;">Trove users have made corrections to <span style="font-size: 10rem;">{:,}</span> newspaper articles.</p>'.format(total)))
    except KeyboardInterrupt:
In [2]:
# Run this cell to start the ticker
# To stop, click the stop button or select Kernel > Interrupt from the menu

Trove users have made corrections to 12,744,049 newspaper articles.

Created by Tim Sherratt for the GLAM Workbench.
Support this project by becoming a GitHub sponsor.