Index: filters/domain.py |
diff --git a/filters/domain.py b/filters/domain.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71a7dc9a271b33207a786216380af96f6b77cfb1 |
--- /dev/null |
+++ b/filters/domain.py |
@@ -0,0 +1,4 @@ |
+import urlparse |
+ |
+def domain(url): |
+ return urlparse.urlsplit(url).netloc.split(":")[0] |