aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2023-01-04 21:31:01 -0800
committerBryan Newbold <bnewbold@archive.org>2023-01-04 21:31:01 -0800
commit619e26b353b9b4b16df494b087b2173a6ce06eec (patch)
treec0958d60ea4abcf5dcd1ce3a6d49f94fc2677c7d
parent4dc3c6c70c13214922d100105bb66a9abe5b192a (diff)
downloadchocula-619e26b353b9b4b16df494b087b2173a6ce06eec.tar.gz
chocula-619e26b353b9b4b16df494b087b2173a6ce06eec.zip
add old url2surt python file
-rw-r--r--extra/url2surt.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/url2surt.py b/extra/url2surt.py
new file mode 100644
index 0000000..eee4841
--- /dev/null
+++ b/extra/url2surt.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import sys
+import surt
+
+for line in sys.stdin:
+ url = line.strip()
+ if not url:
+ continue
+ as_surt = surt.surt(url)
+ print(as_surt)
+
+