# Run this cell first to set things up
import time
import requests
from IPython.display import HTML, clear_output, display
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 13,590,152 newspaper articles.
Created by Tim Sherratt for the GLAM Workbench.
Support this project by becoming a GitHub sponsor.