"""python3 dump.py A B prints scenes A..B for reading (same as ../jacobs/dump.py).""" import json, sys c = json.load(open('chunks.json')) a, b = int(sys.argv[1]), int(sys.argv[2]) for i in range(a, b + 1): print(f'=== {i} (story {c[i]["story"]}, {c[i]["words"]}w)\n' + c[i]['text'])