code: def import_url(self, url=None, force=None):
          
          file_contents = self.get_hosts_by_url(url=url).decode('utf-8')
          file_contents = file_contents.rstrip().replace('^M', '\n')
          file_contents = file_contents.rstrip().replace('\r\n', '\n')
          lines = file_contents.split('\n')
          skipped = 0
          import_entries = []
          for line in lines:
              stripped_entry = line.strip()
              if (not stripped_entry) or (stripped_entry.startswith('#')):
                  skipped += 1
              else:
                  line = line.partition('#')[0]
                  line = line.rstrip()
                  import_entry = HostsEntry.str_to_hostentry(line)
                  if import_entry:
                      import_entries.append(import_entry)
          add_result = self.add(entries=import_entries, force=force)
          write_result = self.write()
          return {'result': 'success',
                  'skipped': skipped,
                  'add_result': add_result,
                  'write_result': write_result}
docs: Read a list of host entries from a URL, convert them into instances of HostsEntry and
          then append to the list of entries in Hosts
          :param url: The URL of where to download a hosts file
          :return: Counts reflecting the attempted additions