Skip to content
Manuel Cabral edited this page Sep 29, 2022 · 3 revisions

The Brinf class that allows you to get information about your default browser or another installed browser.

Properties

class pybrinf.Brinf

  • supported_browsers

    Get the list of supported browsers.

    Returns -> [str]

  • default_browser

    Get the default browser instance.

    Returns -> class pybrinf.Browser

Methods

  • init()

    Initializes the package, must be called before using any other methods of the class.

    Returns -> None

  • reset()

    Resets the Brinf instance.

    Returns -> None

  • installed_browsers()

    Get a list of all installed browsers in your system.

    Returns -> [class pybrinf.Browser]

  • browser()

    Get a browser instance from the name.

    If the browser is not installed, it will raise an exception.

    Arguments

    • name (str): The name of the browser.

    Returns -> class pybrinf.Browser

  • history()

    Get the history of all installed browsers.

    IMPORTANT: Limit the number of results to avoid performance issues.

    Arguments

    • reverse (bool): If True will be sorted in reverse order.
    • exclude (str, list[str]): Exclude especific browsers from the history.
    • limit (int): The maximum number of history items for each browser.
    • offset (int): The offset of the history items for each browser.

    Returns -> [class pybrinf.item.History]

  • downloads()

    Get the downloads of all installed browsers.

    IMPORTANT: Limit the number of results to avoid performance issues.

    Arguments

    • reverse (bool): If True will be sorted in reverse order.
    • exclude (str, list[str]): Exclude especific browsers from the downloads.
    • limit (int): The maximum number of download items for each browser.
    • offset (int): The offset of the download items for each browser.

    Returns -> [class pybrinf.item.Downloaded]

Clone this wiki locally