you may want to consider passing "file://{0}".format(SampleData().get_log_path(url)) to LogParseCollection. urllib2 can handle local files as well :)