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.
Printable View
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.
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....
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.
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");Code:use LWP::Simple;
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";
}
See my reply in the PHP forum.
(I wish I would have saw this post first as its in a more on-topic forum).