summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-04-24 15:21:11 +0200
committerLeif Johansson <leifj@sunet.se>2014-04-24 15:21:11 +0200
commite726c093bb2f2ac637190963a1e023d8dc0c13c3 (patch)
tree9c3a6ec376d7e166e006fcbd0c3f74092c177463 /scripts
parentbf54c522a3bcf446607a0f45c1121918745297bb (diff)
heartblead tools
Diffstat (limited to 'scripts')
-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