Re: Web automation (was: Pressing a Webpage Button)

2005-11-07 Thread qwweeeit
Hi all, I must correct myself: > With such a method you can bypass the Google's restrictions, because > you are using the browser (only building automatically the query). Of course that's not correct because you are using a program (twill) different from a browser and if google controls from where

Re: Web automation (was: Pressing a Webpage Button)

2005-11-03 Thread [EMAIL PROTECTED]
Twill or Pamie looks good, if your looking for a solution using Python. If you are looking for Cross- browser solution for testing there is also selenium that does that. The have some code for use in Python. There is also WATIR in RUBY and SAMIE in PERL It depends on your enviroment and needs.

Re: Web automation (was: Pressing a Webpage Button)

2005-11-03 Thread [EMAIL PROTECTED]
Twill or Pamie looks good, if your looking for a solution using Python. If you are looking for Cross- browser solution for testing there is also selenium that does that. The have some code for use in Python. There is also WATIR in RUBY and SAMIE in PERL It depends on your enviroment and needs.

Re: Web automation (was: Pressing a Webpage Button)

2005-11-03 Thread [EMAIL PROTECTED]
Hello, It's fairly easy to do see code below: ## from win32com.client import DispatchEx import time # instaniate a new IE object ie = DispatchEx('InternetExplorer.Application') # Naviagte to the site ie.Navigate("www.google.

Web automation (was: Pressing a Webpage Button)

2005-11-03 Thread qwweeeit
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. > For example, google has a button how would i make a script to press that button? I have a si

Re: Pressing A Webpage Button

2005-06-22 Thread calfdog
You also may want to fire an event when a button is pressed such as: ie.Document.forms['f'].elements['btnG'].FireEvent('onClick') Events: onclick Fires when the user clicks the left mouse button on the object. onsubmit Fires when a FORM is about to be submitted. For more go here: http://msdn.m

Re: Pressing A Webpage Button

2005-06-03 Thread J Correia
"Esben Pedersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do i know which methods the ie object has? dir(ie) doesn't show > Navigate. For ie object: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/IWebBrowser2/IWebBrowser2.asp For document object: h

Re: Pressing A Webpage Button

2005-06-03 Thread Esben Pedersen
J Correia wrote: > "Elliot Temple" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>How do I make Python press a button on a webpage? I looked at >>urllib, but I only see how to open a URL with that. I searched >>google but no luck. >> >>For example, google has a button how

Re: Pressing A Webpage Button

2005-06-01 Thread Paul Rubin
Grant Edwards <[EMAIL PROTECTED]> writes: > > I presume you can figure out how to open the URL instead of > > printing it? > > Ah, never mind. That doesn't work. Google somehow detects > you're not sending the query from a browser and bonks you. Try setting the User-agent: header to one that lo

Re: Pressing A Webpage Button

2005-06-01 Thread Grant Edwards
On 2005-06-02, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-06-01, Elliot Temple <[EMAIL PROTECTED]> wrote: > >> How do I make Python press a button on a webpage? > > You just do whatever action is specified for the form > containing the button. > >> I looked at urllib, but I only see how to

Re: Pressing A Webpage Button

2005-06-01 Thread Grant Edwards
On 2005-06-01, Elliot Temple <[EMAIL PROTECTED]> wrote: > How do I make Python press a button on a webpage? You just do whatever action is specified for the form containing the button. > I looked at urllib, but I only see how to open a URL with > that. Guess what happens when you push that butt

Re: Pressing A Webpage Button

2005-06-01 Thread jerky
hi, urllib does not work when search from google.com, since google.com have some limitations to developer , you can get more details from www.google.com/apis/ "Elliot Temple" <[EMAIL PROTECTED]> ??:[EMAIL PROTECTED] > How do I make Python press a button on a webpage? I looked at urllib,

Re: Pressing A Webpage Button

2005-06-01 Thread John J. Lee
Elliot Temple <[EMAIL PROTECTED]> writes: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. [...] You might find the FAQ list and hints below useful after you get over the initial barriers (and

Re: Pressing A Webpage Button

2005-06-01 Thread Tim Roberts
Elliot Temple <[EMAIL PROTECTED]> wrote: > >How do I make Python press a button on a webpage? I looked at >urllib, but I only see how to open a URL with that. I searched >google but no luck. > >For example, google has a button how would i make a script to press that button? > >Just for fu

Re: Pressing A Webpage Button

2005-06-01 Thread J Correia
"Elliot Temple" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. > > For example, google has a button how would i make a script to

Re: Pressing A Webpage Button

2005-06-01 Thread Steve M
Do you actually need to 'press' the button? Or do you just need the effect that pressing the button would bring about (e.g., submitting a Google search query and receiving the results page)? If the latter, then you might want to search for, e.g., "html form get post" and check out some results. Pu

Re: Pressing A Webpage Button

2005-06-01 Thread Brian Beck
Elliot Temple wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no luck. Check out mechanize: http://wwwsearch.sourceforge.net/mechanize/ -- Brian Beck Adventurer of the First Order -- http://ma

Pressing A Webpage Button

2005-06-01 Thread Elliot Temple
How do I make Python press a button on a webpage? I looked at urllib, but I only see how to open a URL with that. I searched google but no luck. For example, google has a button how would i make a script to press that button? Just for fun, is there any way to do the equivalent of typing