Two questions about Google and Whois API

Discussion in 'PHP' started by guruguy, Sep 5, 2008.

  1. #1
    I need some advice with two questions I have for a script I am writing.

    #1: Is it possible to use the google API in a php script for backend results. i.e. I need to retrieve the urls of pages that come up for a search I do in google and add them to a database. This program is not intended for viewing by browsers but just run via a cron. I have had a look on google however everything looks quite premade and looks only useful for adding a search box to the site, so I am unsure how best to do this.

    #2: From your opinion, what is the best framework or service to use to access information from the whois databases. I need to capture the registration and expiry dates of domains and place them in a database. What is the easiest way to do this in mass using php?

    Thanks
     
    guruguy, Sep 5, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    #1: You're looking for the depreciated Google SOAP API Key. The AJAX search doesn't support PHP automation.

    #2: I've never used a framework for whois, just manual requests to each server to parse that data I would. Would you query a large variety of TLDs?
     
    jayshah, Sep 5, 2008 IP
    guruguy likes this.
  3. blwire

    blwire Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you could just crawl some sites that already do that and save the results.
     
    blwire, Sep 5, 2008 IP
  4. guruguy

    guruguy Active Member

    Messages:
    553
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Alright then. I am creating an indexing system for certain sites so I thought piggybacking of google would work, but instead I will write my own system. As for whois, I want to query about 2000+ domains a day, all TLDs but mostly .com and .info. I want to be able to retrieve the creation and expiry dates of the domains. What's the best way to do this?
     
    guruguy, Sep 5, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    You can use crsnic.net/internic.net for com, net, org and afilias for .info. Make a direct socket connection using fsockopen and read the data.

    Jay
     
    jayshah, Sep 6, 2008 IP
  6. guruguy

    guruguy Active Member

    Messages:
    553
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Sounds good, I'll check it out a bit later
     
    guruguy, Sep 6, 2008 IP