# 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():
try:
while True:
clear_output(wait=True)
response = requests.get('http://api.trove.nla.gov.au/v2/result', 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)))
time.sleep(5)
except KeyboardInterrupt:
pass
# Run this cell to start the ticker
# To stop, click the stop button or select Kernel > Interrupt from the menu
update_corrections()
Trove users have made corrections to 11,998,162 newspaper articles.
Created by Tim Sherratt for the GLAM Workbench.