def _escape_censys_value(value):
    """Escapes necessary characters for a censys search
    """
    escape_strings = ["+", "-", "=", "&", "|", ">", "<", "!", "(", ")",
                      "{","}","[","]","^", "\"", "~", "*", "?", ":", "\\", "/"]
    escape_dict = {}
    for escape_string in escape_strings:
        escape_dict[escape_string] = "\\" + escape_string
    return value.translate(str.maketrans(escape_dict))