469,282 Members | 2,000 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Webbrowser and Mozilla control on linux

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.
Jul 18 '05 #1
4 2609
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/
Jul 18 '05 #2
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.


Jul 18 '05 #3
Joe Francia <usenet@-OBFUSCATED-joefrancia.com> 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
Jul 18 '05 #4
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
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michel Van den Bergh | last post: by
5 posts views Thread by SPE - Stani's Python Editor | last post: by
12 posts views Thread by Alex Clark | last post: by
8 posts views Thread by Dustan | last post: by
11 posts views Thread by Webbert | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.