💾 Archived View for tris.fyi › pydoc › webbrowser captured on 2023-04-26 at 13:33:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

webbrowser

Interfaces for launching and remotely controlling web browsers.

Classes

BackgroundBrowser

Class for all browsers which are to be started in the
       background.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']

BaseBrowser

Parent class for all browsers. Do not use directly.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']

Chrome

Launcher class for Google Chrome browser.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = None
redirect_stdout = True
remote_action = ''
remote_action_newtab = ''
remote_action_newwin = '--new-window'
remote_args = ['%action', '%s']

Chrome

Launcher class for Google Chrome browser.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = None
redirect_stdout = True
remote_action = ''
remote_action_newtab = ''
remote_action_newwin = '--new-window'
remote_args = ['%action', '%s']

Elinks

Launcher class for Elinks browsers.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = False
raise_opts = None
redirect_stdout = False
remote_action = ''
remote_action_newtab = ',new-tab'
remote_action_newwin = ',new-window'
remote_args = ['-remote', 'openURL(%s%action)']

Error

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Galeon

Launcher class for Galeon/Epiphany browsers.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = ['-noraise', '']
redirect_stdout = True
remote_action = '-n'
remote_action_newtab = None
remote_action_newwin = '-w'
remote_args = ['%action', '%s']

GenericBrowser

Class for all browsers started with a command
       and without remote functionality.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']

Grail

open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']

Konqueror

Controller for the KDE File Manager (kfm, or Konqueror).

    See the output of ``kfmclient --commands``
    for more information on the Konqueror remote-control interface.
    
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']

Mozilla

Launcher class for Mozilla browsers.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = None
redirect_stdout = True
remote_action = ''
remote_action_newtab = '-new-tab'
remote_action_newwin = '-new-window'
remote_args = ['%action', '%s']

Netscape

Launcher class for Netscape browser.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = ['-noraise', '-raise']
redirect_stdout = True
remote_action = ''
remote_action_newtab = ',new-tab'
remote_action_newwin = ',new-window'
remote_args = ['-remote', 'openURL(%s%action)']

Opera

Launcher class for Opera browser.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = True
raise_opts = None
redirect_stdout = True
remote_action = ''
remote_action_newtab = ''
remote_action_newwin = '--new-window'
remote_args = ['%action', '%s']

UnixBrowser

Parent class for all Unix browsers with remote functionality.
open(self, url, new=0, autoraise=True)
open_new(self, url)
open_new_tab(self, url)
args = ['%s']
background = False
raise_opts = None
redirect_stdout = True
remote_action = None
remote_action_newtab = None
remote_action_newwin = None
remote_args = ['%action', '%s']

Functions

get

get(using=None)

  Return a browser launcher instance appropriate for the environment.

main

main()

open

open(url, new=0, autoraise=True)

  Display url using the default browser.

      If possible, open url in a location determined by new.
      - 0: the same browser window (the default).
      - 1: a new browser window.
      - 2: a new browser page ("tab").
      If possible, autoraise raises the window (the default) or not.
    

open_new

open_new(url)

  Open url in a new window of the default browser.

      If not possible, then open url in the only browser window.
    

open_new_tab

open_new_tab(url)

  Open url in a new page ("tab") of the default browser.

      If not possible, then the behavior becomes equivalent to open_new().
    

register

register(name, klass, instance=None, *, preferred=False)

  Register a browser connector.

register_X_browsers

register_X_browsers()

register_standard_browsers

register_standard_browsers()

Modules

os

shlex

shutil

subprocess

sys

threading