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 2794
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
type mismatch error trying to get the browser document property. The app
worked fine with the WebBrowser control.
'...Sub starts here...
Dim doc as HTMLDocument
Set doc = web.Document ' <- Type mismatch happens here.
Select case doc.URL
|
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 on Linux).
(*) If you open an url (with the option "new window") and the browser is
not already running
then it opens *two* windows: the home page and your url. This is
different for example
|
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
working:
>>> import webbrowser
>>> webbrowser.open("http://www.python.org")
It does not throw an exception, but is not able to launch a browser.
|
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 HTML
documents to simplify my printing tasks, but of course it's thrown up a
whole host of new issues...
I'm generating a multi page printable document in HTML from my app, and
displaying it in a WebBrowser control. I've looked into using some CSS
|
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 such as Firefox, Opera, Konqueror, and elinks."
I just installed python 2.5, looking forward to being able to control
firefox without having to make it my default browser, but...
I don't seem to have that functionality. In IDLE:
{'windows-default': }
| |
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 successful
in doing so.
The only solution I have found is to write it to a temp file and then use
the Navigate method to load it. As the control is capable of loading it from
disk, I would like to find a way to skip the save/load and just inject.
Thanks,
Dave
|
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
i made a gif video that i wanted to put into a program, and i couldnt figure out how to get it into VB6. finally i found out that the Microsoft Internet Control would play the gif file if i located it with "webbrowser1.navigate" for example, so i did this. i decided it was working fine and...
|
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
tests. The problem I'm having is that after a while, the application is
using more than 100 or 150 Mb in RAM, and if I let it continue, it can leave
the system without memory. I've been watching in some pages that other
people has the same problem with this control when keep navigating for a...
|
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 a trustworthy browser with a few lines of code just using the webbrowser control, like compared to Internet Explorer 7 and Mozilla Firefox, is the webbrowser control almost as secure ? basically i just want to build a browser, but i do want it to be secure as most leading browsers, is it secure...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |