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
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.
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.
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.
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
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
"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
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
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
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
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
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,
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
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
"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
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
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
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
18 matches
Mail list logo