code: def parse_devicelist(data_str):
      
  
      p = HTMLTableParser()
      p.feed(data_str)
  
      known_devices = p.tables[9]
  
      devices = {}
  
      for device in known_devices:
          if len(device) == 5 and device[2] != '':
              devices[device[2]] = device[1]
  
      return devices
docs: Parse the BT Home Hub 5 data format.