Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Webbrowser and Mozilla control on linux

Reply
Thread Tools

Webbrowser and Mozilla control on linux

 
 
Jay Davis
Guest
Posts: n/a
 
      01-18-2004
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.
 
Reply With Quote
 
 
 
 
Joe Francia
Guest
Posts: n/a
 
      01-18-2004
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/
 
Reply With Quote
 
 
 
 
Casey
Guest
Posts: n/a
 
      01-18-2004
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.


 
Reply With Quote
 
John J. Lee
Guest
Posts: n/a
 
      01-18-2004
Joe Francia <(E-Mail Removed)> 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
 
Reply With Quote
 
Lars Heuer
Guest
Posts: n/a
 
      01-18-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent: Integrate WebBrowser Control in ASP.NET/VB.NET? ASP .NET Newbie ASP .Net 10 09-28-2007 10:41 AM
Screen capture control using WebBrowser control and GDI+ in a web app JP2006 ASP .Net 1 01-07-2007 07:51 PM
WebBrowser control in DLL and STAThread error JP2006 ASP .Net 1 09-08-2006 07:16 PM
Type mismatch using Mozilla ActiveX in place of Microsoft WebBrowser? Noozer Firefox 0 05-19-2004 08:08 AM
ASPNET and Webbrowser control Daniel Frede ASP .Net 1 05-18-2004 01:50 AM



Advertisments