code: def is_dragon(host, timeout=1):
          
          try:
              r = requests.get('http://{}/'.format(host), timeout=timeout)
              if r.status_code == 200:
                  if '<title>DragonMint</title>' in r.text or \
                          '<title>AsicMiner</title>' in r.text:
                      return True
          except requests.exceptions.RequestException:
              pass
          return False
docs: Check if host is a dragon.
  
          Check if the specified host is a dragon based on simple heuristic.
          The code simply checks if particular strings are in the index page.
          It should work for DragonMint or Innosilicon branded miners.