#!/usr/bin/python import sys from datpath import datpath for url in sys.argv[1:]: path = datpath(url) if path: print path