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. 4 2721
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/
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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Noozer |
last post by:
I've just installed the Mozilla ActiveX control. I'm trying to replace the
Microsoft WebBrowser control with the Mozilla control, but I'm getting a...
|
by: Michel Van den Bergh |
last post by:
Hello,
I was looking at the code of webbrowser.py included in python 2.3.3. I
think there are some
obvious problems with it (tested with mozilla...
|
by: SPE - Stani's Python Editor |
last post by:
Hi,
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not...
|
by: Alex Clark |
last post by:
Greetings,
(.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs).
I've decided to take advantage of the layout characteristics of...
|
by: Dustan |
last post by:
At http://docs.python.org/whatsnew/modules.html on the webbrowser
module, it says "A number of additional browsers were added to the
supported list...
|
by: Webbert |
last post by:
I am trying to display XML in a WebBrowser Control. I receive a data feed of
XML and am trying to inject it into the control. I have not been...
|
by: dennijr |
last post by:
sry its long, questions in the last sentance if u wanna jump to it. i just decided that i would include everything that led up to the problem ...
|
by: Cesar |
last post by:
Hello people. I'm having a Winform app that contains a webbrowser control
that keeps navigating from one page to another permanentrly to make some...
|
by: joedeene |
last post by:
hey, i just wanted to know like how secure is the webbrowser control in the .net framework(im using the newest one) but how secure is it? can i build...
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: CD Tom |
last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
|
by: CD Tom |
last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
| |