diff options
-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) + + |