{
    "mode": "pydoc",
    "parameter": "webbrowser",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/webbrowser/json",
    "generated": "2026-06-02T15:06:49Z",
    "sections": {
        "NAME": {
            "content": "webbrowser - Interfaces for launching and remotely controlling web browsers.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/webbrowser.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\nError\n",
            "subsections": [
                {
                    "name": "class Error",
                    "content": "|  Method resolution order:\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "get",
                    "content": "Return a browser launcher instance appropriate for the environment.\n"
                },
                {
                    "name": "open",
                    "content": "Display url using the default browser.\n\nIf possible, open url in a location determined by new.\n- 0: the same browser window (the default).\n- 1: a new browser window.\n- 2: a new browser page (\"tab\").\nIf possible, autoraise raises the window (the default) or not.\n"
                },
                {
                    "name": "open_new",
                    "content": "Open url in a new window of the default browser.\n\nIf not possible, then open url in the only browser window.\n"
                },
                {
                    "name": "open_new_tab",
                    "content": "Open url in a new page (\"tab\") of the default browser.\n\nIf not possible, then the behavior becomes equivalent to opennew().\n"
                },
                {
                    "name": "register",
                    "content": "Register a browser connector.\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['Error', 'open', 'opennew', 'opennewtab', 'get', 'regist...\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/webbrowser.py\n\n",
            "subsections": []
        }
    },
    "summary": "webbrowser - Interfaces for launching and remotely controlling web browsers.",
    "flags": [],
    "examples": [],
    "see_also": []
}