From 619e26b353b9b4b16df494b087b2173a6ce06eec Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 4 Jan 2023 21:31:01 -0800 Subject: add old url2surt python file --- extra/url2surt.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extra/url2surt.py 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) + + -- cgit v1.2.3