|
-
Apr 17th, 2002, 01:37 AM
#1
Thread Starter
Hyperactive Member
Search engines...
Hi,
Im trying to do the following via code(PHP or Perl).
Submit a site to a search engine and return the ranking as determined by the search engine.
Any help on how this can be done?
Thanx a lot.
Last edited by rammy; Apr 17th, 2002 at 01:46 AM.
-
Apr 17th, 2002, 01:55 AM
#2
You want the search engine ranking to be returned immediately? That's not possible. It takes lots of time for the URL to be actually added...
what I mean is, for example... it takes around 4 - 6 months on yahoo.
also each search engine may have a different method of submission....
-
Apr 17th, 2002, 03:24 AM
#3
Thread Starter
Hyperactive Member
One of the other things I need to do via code is to submit data (site URL) to a search engine and return the no. of sites linking to the specified site.
In the search engine this can be done by using "link:<siteURL>" as the search criterion. Where I'm stuck is: how do I submit this to a search engine and get the results programmatically?
Any ideas on these?
Thanx a lot once again.
-
Apr 17th, 2002, 07:36 AM
#4
-
Apr 19th, 2002, 05:03 AM
#5
Thread Starter
Hyperactive Member
I have been trying to use the LWP::Simple module for this purpose.....but Im stuck when I try to send a search engine's URL. for Eg: if I try to retrieve the page content from www.yahoo.com it works fine. But if I try to access
the code does not work. Is this because the url is put together dynamically? Any ideas on how i can get this to work?
Here is my code:
my $content = get("http://www.google.com/search?hl=en&q=php");
if (defined $content)
{
#$content will contain the html for with the url mentioned.
print $content;
}
else
{
#If an error occurs then $content will not be defined.
print "Error: Get failed\n";
}
-
Apr 19th, 2002, 11:10 AM
#6
Black Cat
See my reply in the PHP forum.
(I wish I would have saw this post first as its in a more on-topic forum).
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|