-
Notifications
You must be signed in to change notification settings - Fork 2
Brinf
The Brinf class that allows you to get information about your default browser or another installed browser.
class pybrinf.Brinf
-
Get the list of supported browsers.
Returns -> [str]
-
Get the default browser instance.
Returns -> class pybrinf.Browser
-
Initializes the package, must be called before using any other methods of the class.
Returns -> None
-
Resets the Brinf instance.
Returns -> None
-
Get a list of all installed browsers in your system.
Returns -> [class pybrinf.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
-
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]
-
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]