Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

need excess define functionality of google

0 views
Skip to first unread message

kdsutaria

unread,
Nov 7, 2006, 6:13:14 AM11/7/06
to
Hi !
In my project i need output of definitions of any inputed phrase which
is given by define functionality of google.

As for example, when we type define:HP
it gives all defintions of HP.
My problem is :
Using this API and Perl SOAP::Lite , i am not be able to pass query for
define functionality of google.
It gives me output of normal search query.

Will anyone can help me ?
komal

simon....@gmail.com

unread,
Nov 18, 2006, 12:34:04 PM11/18/06
to
I am also trying to do the same thing.

But if you search this group for "define" you will get similar posts.
See
http://groups.google.com/group/google.public.web-apis/browse_thread/thread/273a4d2db8998f8/c783e7257927cf02?lnk=gst&q=define&rnum=2#c783e7257927cf02
for one set of replies.

It seems the Google SOAP API still has not added in this functionality.
I expect it will come in the future.

The only thing you can therefore do is "screen scrape". This is
manually sending an HTTP request and parsing the output using regular
expressions. So for an HP search you would request the result of
http://www.google.co.uk/search?hl=en&q=define%3AHP&btnG=Google+Search
Then use regular expressions to find the definitions with the li tags.

The problem with this method is that it is far from robust. If Google
decided to change the HTML of it's define pages your program is likely
to break.

0 new messages