Browse Source

Log number of results on a page

master
JustAnotherArchivist 2 years ago
parent
commit
0f7a2b32a3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ia-cdx-search

+ 1
- 1
ia-cdx-search View File

@@ -54,7 +54,7 @@ async def wait_first_and_print(tasks):
assert all(len(v) == len(fields) for v in o[1:]), 'got unexpected response format'
for row in o[1:]:
print(json.dumps(dict(zip(fields, row))))
print(f'Completed processing page {task._ia_cdx_page}', file = sys.stderr)
print(f'Completed processing page {task._ia_cdx_page} ({len(o) - 1} results)', file = sys.stderr)
return task._ia_cdx_page, connection




Loading…
Cancel
Save