'Function called to grab stats.
Infinite loop, should be stopped by calling the stop() method'

def run(self):

    for p in self._stats:
        if self.stopped():
            break
        if ('port' in p):
            self._port_scan(p)
            time.sleep(1)
        elif (('url' in p) and requests_tag):
            self._web_scan(p)
