aboutsummaryrefslogtreecommitdiffstats
path: root/extra/cdx
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-15 03:30:56 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-15 03:30:56 +0200
commit1e03f7f9b0dc4fe2bf856c542d011de72962ce10 (patch)
treea10e973438ecac86ba265a3947be5295b8b5f889 /extra/cdx
parent552cb824889e146f4da0df682d96b1047b0e2402 (diff)
downloadrefcat-1e03f7f9b0dc4fe2bf856c542d011de72962ce10.tar.gz
refcat-1e03f7f9b0dc4fe2bf856c542d011de72962ce10.zip
cdx reshape: write json
Diffstat (limited to 'extra/cdx')
-rw-r--r--extra/cdx/cdx_reshape.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/cdx/cdx_reshape.py b/extra/cdx/cdx_reshape.py
index 4e96134..6b3d6e5 100644
--- a/extra/cdx/cdx_reshape.py
+++ b/extra/cdx/cdx_reshape.py
@@ -15,5 +15,5 @@ for line in fileinput.input():
by_url[doc["line"]] = doc
-for k, v in sorted(by_url):
- print("{}\t{}".format(k, v))
+for k, v in sorted(by_url.items()):
+ print("{}\t{}".format(k, json.dumps(v)))