import urllib.request, json
r = urllib.request.urlopen("http://127.0.0.1:8000/api/translate/2005.14165")
data = json.loads(r.read())
p = data["paragraphs"][0]
page1 = p["page"]
en1 = p["en"][:60]
zh1 = p["zh"][:80]
print(f"page={page1}, en={en1}")
print(f"zh={zh1}")
p5 = data["paragraphs"][5]
page5 = p5["page"]
zh5 = p5["zh"][:80]
print(f"para[5] page={page5}, zh={zh5}")
