summaryrefslogtreecommitdiff
path: root/metadata/scripts/urls2hostport.py
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/scripts/urls2hostport.py')
-rw-r--r--metadata/scripts/urls2hostport.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/metadata/scripts/urls2hostport.py b/metadata/scripts/urls2hostport.py
new file mode 100644
index 00000000..c4ff33bf
--- /dev/null
+++ b/metadata/scripts/urls2hostport.py
@@ -0,0 +1,6 @@
+
+import sys
+from urlparse import urlparse
+for url in sys.stdin:
+ o = urlparse(url)
+ print o.netloc