Webbrowser and Mozilla control on linux

J

Jay Davis

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.
 
J

Joe Francia

Jay said:
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/
 
C

Casey

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.
 
J

John J. Lee

Joe Francia said:
Jay said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top