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
#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?
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?
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