Results 1 to 6 of 6

Thread: Search engines...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298

    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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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....

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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:

    Code:
    use LWP::Simple;
    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";
    }

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width