Gossamer Forum
Home : General : Perl Programming :

search popular search engines such as google

Quote Reply
search popular search engines such as google
hello, i wanna know how i can have users input a search on my website which will search the web using google or msn or other popular search engines, displaying the results in a new window.

also i wanna know how i can check if a url is still active by pinging it or something.

ta. mofoman Pirate
Quote Reply
Re: [mofoman5678] search popular search engines such as google In reply to
Not sure about the first one...but for the second, you could use something like;

Code:
#!/usr/bin/perl

use strict;
print "Content-type: text/html \n\n";

use LWP::Simple;
@data = get("http://www.site.com/page.html");

if (!@data) { print "page cannot be found! \n"; }

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] search popular search engines such as google In reply to
Or just use Net::Ping Tongue
Quote Reply
Re: [Paul] search popular search engines such as google In reply to
As far as google is concerned.

I have a script for it that you can snatch the results from google in seemingless way. But you can perform only 1000 searches a day. Otherwise, google is going to ban your domain.

you can see it here:

http://ammarasim.hypermart.net/cgi-bin/search/meta.cgi

If you are interested, let me know at zeshanism@yahoo.com

Thanks,

Zeshan.
Quote Reply
Re: [zeshan] search popular search engines such as google In reply to
I believe you are not allowed to "borrow" their results at all. I wrote a script and after only a few searches my IP was banned.

Last edited by:

Paul: Mar 23, 2003, 11:37 AM
Quote Reply
Re: [Paul] search popular search engines such as google In reply to
you are misinformed.

Google is now open for developers to use the results as they want but only upto 1,000 queries per day

http://www.google.com/apis/index.html

you can find a pre-made script at O'Reily website for Perl/Unix users. I did try it but its more complex than what I have, so I choosed my own.

Thanks,

Zeshan.
Quote Reply
Re: [zeshan] search popular search engines such as google In reply to
Quote:
you are misinformed.

Not really...I was accurate.

Your post above offering your script is misleading. In order to use it you must first register with Google.

Quote:
To access the Google Web APIs service, you must create a Google Account and obtain a license key. Your Google Account and license key entitle you to 1,000 automated queries per day.

Last edited by:

Paul: Mar 23, 2003, 11:49 AM
Quote Reply
Re: [Paul] search popular search engines such as google In reply to
Oh! sorry!!. I forgot to mention that my script also uses the license key, but its not a big deal. You can have a license key within 10 minutes.

The best part of my script is.. you don't need an special module like SOAP installed on your server.

Thanks,

Zeshan.
Quote Reply
Re: [zeshan] search popular search engines such as google In reply to
Quote:
The best part of my script is.. you don't need an special module like SOAP installed on your server.

Yes, it's very easy to do using something like LWP::UserAgent

Last edited by:

Paul: Mar 23, 2003, 11:53 AM
Quote Reply
Re: [zeshan] search popular search engines such as google In reply to
Hi,

Would you mind posting your script here so we can have a look :-)

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] search popular search engines such as google In reply to
Allow me to refer to http://www.gossamer-threads.com/...orum.cgi?post=236773

It's time to move on to SOAP. Not that you need to care, it's just another module, really.

John
Quote Reply
Re: [mofoman5678] search popular search engines such as google In reply to
MOFORMAN, I have deleted your E-mail and unable to find your mail address so that I can send you the script.

Kindly mail me once again, if you still need the script.

Thanks,

Zeshan.