diff options
author | Bryan Newbold <bnewbold@archive.org> | 2023-01-04 21:31:01 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2023-01-04 21:31:01 -0800 |
commit | 619e26b353b9b4b16df494b087b2173a6ce06eec (patch) | |
tree | c0958d60ea4abcf5dcd1ce3a6d49f94fc2677c7d /extra | |
parent | 4dc3c6c70c13214922d100105bb66a9abe5b192a (diff) | |
download | chocula-619e26b353b9b4b16df494b087b2173a6ce06eec.tar.gz chocula-619e26b353b9b4b16df494b087b2173a6ce06eec.zip |
add old url2surt python file
Diffstat (limited to 'extra')
-rw-r--r-- | extra/url2surt.py | 13 |
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) + + |