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