code: def scanResource(uri = None, listRegexp = None, verbosity=1, logFolder= "./logs"):
      
      logSet.setupLogger(loggerName="osrframework.entify", verbosity=verbosity, logFolder=logFolder)
      logger = logging.getLogger("osrframework.entify")
  
      results = []
      logger.debug("Looking for regular expressions in: " + uri)
  
      data = urllib2.urlopen(uri).read()
      foundExpr = getEntitiesByRegexp(data = data, listRegexp = listRegexp)
  
      logger.debug("Updating the " + str(len(foundExpr)) + " results found on: " + uri)
  
      # Creating the output structure
      for f in foundExpr:
          aux = {}
  
          aux={}
          aux["type"] = "i3visio.search"
          aux["value"] = "URI - " +f["value"]
          aux["attributes"] = []
          for a in f["attributes"]:
              aux["attributes"].append(a)
  
          #Appending the entity itself
          entity={}
          entity["type"] = f["type"]
          entity["value"] = f["value"]
          entity["attributes"] = []
          aux["attributes"].append(entity)
  
          #Appending the uri
          entity={}
          entity["type"] = "i3visio.uri"
          entity["value"] = uri
          entity["attributes"] = []
          aux["attributes"].append(entity)
  
          results.append(aux)
  
      return results
docs: [Optionally] recursive method to scan the files in a given folder.
  
      Args:
      -----
          uri: the URI to be scanned.
          listRegexp: listRegexp is an array of <RegexpObject>.
  
      Returns:
      -------
          dict: the key is the name of the file.