Webbrowser and Mozilla control on linux

Discussion in 'Python' started by Jay Davis, Jan 18, 2004.

  1. Jay Davis

    Jay Davis Guest

    I can launch a browser on linux with the webbrowser module
    and the .open() method. However, I want to be able also to
    control the browser, specifically, I'd like to be able to
    go to a URL and invoke the automatic form filler and post
    the form, all from within a python script.

    I have google'd around and I see hints that there are remote
    controller objects for some browsers, but so far I haven't
    found any examples of code that controls the browser; most
    examples just open the browser, which I could just as well
    do from os.system().

    If anyone can share some samples, or point me to a good
    reference with browser control details, I'd much appreciate
    it. Thanks!

    J.D.
     
    Jay Davis, Jan 18, 2004
    #1
    1. Advertising

  2. Jay Davis

    Joe Francia Guest

    Jay Davis wrote:
    > I can launch a browser on linux with the webbrowser module
    > and the .open() method. However, I want to be able also to
    > control the browser, specifically, I'd like to be able to
    > go to a URL and invoke the automatic form filler and post
    > the form, all from within a python script.
    >
    > I have google'd around and I see hints that there are remote
    > controller objects for some browsers, but so far I haven't
    > found any examples of code that controls the browser; most
    > examples just open the browser, which I could just as well
    > do from os.system().
    >
    > If anyone can share some samples, or point me to a good
    > reference with browser control details, I'd much appreciate
    > it. Thanks!


    If all you're trying to do is automatically fill out web forms, you'll
    probably be better off using ClientForm (and possibly ClientCookie) from
    this page:
    http://wwwsearch.sourceforge.net/
     
    Joe Francia, Jan 18, 2004
    #2
    1. Advertising

  3. Jay Davis

    Casey Guest

    I'm not sure about the current state, but you will
    want to google around with
    xul python mozilla
    and you will find another dimension of wonder.

    I don't know really how much is working, however.

    Jay Davis wrote:
    > I can launch a browser on linux with the webbrowser module
    > and the .open() method. However, I want to be able also to
    > control the browser, specifically, I'd like to be able to
    > go to a URL and invoke the automatic form filler and post
    > the form, all from within a python script.
    >
    > I have google'd around and I see hints that there are remote
    > controller objects for some browsers, but so far I haven't
    > found any examples of code that controls the browser; most
    > examples just open the browser, which I could just as well
    > do from os.system().
    >
    > If anyone can share some samples, or point me to a good
    > reference with browser control details, I'd much appreciate
    > it. Thanks!
    >
    > J.D.
     
    Casey, Jan 18, 2004
    #3
  4. Jay Davis

    John J. Lee Guest

    Joe Francia <> writes:

    > Jay Davis wrote:
    > > I can launch a browser on linux with the webbrowser module
    > > and the .open() method. However, I want to be able also to
    > > control the browser, specifically, I'd like to be able to go to a
    > > URL and invoke the automatic form filler and post
    > > the form, all from within a python script.

    [...]
    > If all you're trying to do is automatically fill out web forms, you'll
    > probably be better off using ClientForm (and possibly ClientCookie)
    > from this page:
    > http://wwwsearch.sourceforge.net/


    ....or if not, it's PyXPCOM that you want. There are a couple of links
    on the "General FAQ" page at the site above. Unfortunately, PyXPCOM
    doesn't have a maintainer with enough time to do it justice ATM, so
    you might have trouble building it. See this bug (which contains a
    patch that should let you build it):

    http://bugzilla.mozilla.org/show_bug.cgi?id=129216


    John
     
    John J. Lee, Jan 18, 2004
    #4
  5. Jay Davis

    Lars Heuer Guest

    Hi Jay,

    > If anyone can share some samples, or point me to a good
    > reference with browser control details, I'd much appreciate


    Documancer, a wxPython app uses Mozilla to display pages (using
    wxMozilla).

    Documancer:
    http://documancer.sf.net/

    wxMozilla:
    http://wxMozilla.sf.net/

    HTH,
    Lars
     
    Lars Heuer, Jan 18, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Frede

    ASPNET and Webbrowser control

    Daniel Frede, May 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,609
    Ken Cox [Microsoft MVP]
    May 18, 2004
  2. ASP .NET Newbie
    Replies:
    10
    Views:
    14,825
    jojobouy
    Sep 28, 2007
  3. Henri
    Replies:
    9
    Views:
    1,904
    Toby Inkster
    Feb 22, 2005
  4. JP2006
    Replies:
    1
    Views:
    697
  5. JP2006
    Replies:
    1
    Views:
    1,091
    Rick Strahl [MVP]
    Jan 7, 2007
Loading...

Share This Page