circe/core.py
def add(self, data: Union[str, bytes], name: str = None, **kwargs) -> None:
        """ Adds string or bytes data to the Bookmarks file.

        Args:
            data (str, bytes): String or Bytes data to add to Bookmarks
            name (str): Name / identifier for the encapsulating bookmarks folder that will contain our URLs

            Optionally, any two of:
                min_len (int): The minimum desired length for a data chunk
                avg_len (int): The average desired length for a data chunk
                max_len (int): The maximum desired length for a data chunk
                jitter (float): Desired variance in the average length of a data chunk (expressed as a percentage)

            If two of the four optional keyword arguments are *not* supplied, then the suggested values for min_len
            (1636) and max_len (2000) will be used.
        """
        if isinstance(data, str):
            data = data.encode()
        if name is None:
            name = next(self._random_title)

        min_len, max_len = self._derive_min_max(**kwargs)
        bookmarks = self._encode(data, min_len, max_len)

        cid = self._get_next_cid()
        folder = {
            "children": bookmarks,
            "cid": f"{cid}/{base64.b64encode(name.encode()).decode()}",
            "date_added": helpers.time_now_chrome(),
            "date_modified": "0",
            "guid": "",
            "id": "",
            "name": next(self._random_title),
            "type": "folder"
        }

        # Add the new bookmarks to the "Other" category, which will not show up in the Bookmarks Toolbar by default.
        self.bookmarks["roots"]["other"]["children"].append(folder)
 Adds string or bytes data to the Bookmarks file.

        Args:
            data (str, bytes): String or Bytes data to add to Bookmarks
            name (str): Name / identifier for the encapsulating bookmarks folder that will contain our URLs

            Optionally, any two of:
                min_len (int): The minimum desired length for a data chunk
                avg_len (int): The average desired length for a data chunk
                max_len (int): The maximum desired length for a data chunk
                jitter (float): Desired variance in the average length of a data chunk (expressed as a percentage)

            If two of the four optional keyword arguments are *not* supplied, then the suggested values for min_len
            (1636) and max_len (2000) will be used.
        
Adds string or bytes data to the Bookmarks file.
Args:
data (str, bytes): String or Bytes data to add to Bookmarks
name (str): Name / identifier for the encapsulating bookmarks folder that will contain our URLs



If two of the four optional keyword arguments are *not* supplied, then the suggested values for min_len
(1636) and max_len (2000) will be used.
Adds string or bytes data to the Bookmarks file . Args : data ( str bytes ) : String or Bytes data to add to Bookmarks name ( str ) : Name / identifier for the encapsulating bookmarks folder that will contain our URLs If two of the four optional keyword arguments are * not * supplied then the suggested values for min_len ( 1636 ) and max_len ( 2000 ) will be used .
def add(self, data: Union[str, bytes], name: str = None, **kwargs) -> None:
        if isinstance(data, str):
            data = data.encode()
        if name is None:
            name = next(self._random_title)
        min_len, max_len = self._derive_min_max(**kwargs)
        bookmarks = self._encode(data, min_len, max_len)
        cid = self._get_next_cid()
        folder = {
            "children": bookmarks,
            "cid": f"{cid}/{base64.b64encode(name.encode()).decode()}",
            "date_added": helpers.time_now_chrome(),
            "date_modified": "0",
            "guid": "",
            "id": "",
            "name": next(self._random_title),
            "type": "folder"
        }
        self.bookmarks["roots"]["other"]["children"].append(folder)
def add ( self , data : Union [ str , bytes ] , name : str = None , ** kwargs ) -> None : if isinstance ( data , str ) : data = data . encode ( ) if name is None : name = next ( self . _random_title ) min_len , max_len = self . _derive_min_max ( ** kwargs ) bookmarks = self . _encode ( data , min_len , max_len ) cid = self . _get_next_cid ( ) folder = { "children" : bookmarks , "cid" : f"{cid}/{base64.b64encode(name.encode()).decode()}" , "date_added" : helpers . time_now_chrome ( ) , "date_modified" : "0" , "guid" : "" , "id" : "" , "name" : next ( self . _random_title ) , "type" : "folder" } self . bookmarks [ "roots" ] [ "other" ] [ "children" ] . append ( folder )
Adds string or bytes data to the Bookmarks file.
Adds string or bytes data to the Bookmarks file .
""" Adds string or bytes data to the Bookmarks file.

        Args:
            data (str, bytes): String or Bytes data to add to Bookmarks
            name (str): Name / identifier for the encapsulating bookmarks folder that will contain our URLs

            Optionally, any two of:
                min_len (int): The minimum desired length for a data chunk
                avg_len (int): The average desired length for a data chunk
                max_len (int): The maximum desired length for a data chunk
                jitter (float): Desired variance in the average length of a data chunk (expressed as a percentage)

            If two of the four optional keyword arguments are *not* supplied, then the suggested values for min_len
            (1636) and max_len (2000) will be used.
        """ # Add the new bookmarks to the "Other" category, which will not show up in the Bookmarks Toolbar by default.

self
data
Union[str, bytes]
name
str