docs: def scan_url(url, apikey):
      """
      If URL is found, scan it
      """
      logger.info('Found what I believe is a URL: %s', url)
      v_api = virus_total.VirusTotal()
      while True:
          url_report = v_api.url_report(url, apikey)
          response_code = url_report['response_code']
  
          # report does not exist, need to scan
          if response_code == -2:
              logger.info('Report job still queued..')
  
          if response_code == 0:
              logger.info('No report  for %s', url)
              break
  
          if response_code == 1:
              logger.info('Report found, job complete for %s.', url)
              break
  
      try:
          positives = url_report['positives']
          if positives > 0:
              for site, results in url_report['scans'].items():
                  if results['detected']:
                      detected = True
                      failure = True
                      logger.error("%s is recorded as a %s by %s", url, results['result'], site)
              if detected:
                  logger.error("Full report available here: %s", url_report['permalink'])
          else:
              logger.info("%s is recorded as a clean", url)
      except:
          pass