open default web browser using python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gregor Leban

    open default web browser using python

    Hi,

    Our team is working on a data mining software written in python that will
    run on windows, linux and mac platforms. When clicking on one of the menu
    items, we would like to open the default web browser for that platform with
    a specific html page. Is there any python function that can do that?

    Thanks,

    Gregor


  • Mickel Grönroos

    #2
    Re: open default web browser using python

    On Wed, 10 Mar 2004, Gregor Leban wrote:
    [color=blue]
    > When clicking on one of the menu
    > items, we would like to open the default web browser for that platform with
    > a specific html page. Is there any python function that can do that?[/color]

    Look at the webbrowser module:

    import webbrowser
    webbrowser.open ("http://www.google.com/")

    Cheers,

    /Mickel G.

    --
    Mickel Grönroos, application specialist, linguistics, Research support,CSC
    PL 405 (Tekniikantie 15 a D), 02101 Espoo, Finland, phone +358-9-4572237
    CSC is the Finnish IT center for science, www.csc.fi

    Comment

    Working...