aboutsummaryrefslogtreecommitdiffstats
path: root/extra/url2surt.py
blob: eee48411548e3470a831f17f9508886789890d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)