summaryrefslogtreecommitdiff
path: root/metadata/scripts/urls2hostport.py
blob: c4ff33bfebde09eab3d6f8f20f720dd5d0869a56 (plain)
1
2
3
4
5
6

import sys
from urlparse import urlparse
for url in sys.stdin:
   o = urlparse(url)
   print o.netloc