Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script
ORIG FEED
http://api.indeed.com/ads/apisearch?publisher=0000000000000000&q=java&l=austin%2C+tx&sort=&radius=&st=&jt=&start=&limit=&fromage=&filter=&latlong=1&co=us&chnl=&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2

Updated Feed to XML
$file = file_get_contents(‘http://api.indeed.com/ads/apisearch?publisher=0000000000000000&q=’.$keywords.’&l=’.$loc.’&sort=&radius=&st=&jt=&start=&limit=30&fromage=&filter=&latlong=1&co=ca&chnl=&userip=1.2.3.4&useragent=Mozilla/%2F4.0%28Firefox%29&v=2&.xml’, true);
$ext=”.xml”;
$feedurl=”myfeed”;
//This makes a name like mysite.com/myurl.php with unique time
$myfeed=$feedurl.time().$ext;
//opens or creates the file here with the desired name    
$fh = fopen($myfeed, ‘w’);
//writes the file to the new file name
fwrite($fh, $file);
fclose($fh);
$url = “http://www.mysite.com/temp-xml/”.$myfeed;

// write all code here
$dom = new DOMDocument;
$dom->load($url);
// use the above to load an xml file on server or below to load the api. Both run in less than 1/10 second
//@$dom->loadHTML($file);

foreach ($dom->getElementsByTagname(‘result’) as $result) {
$date = $result->getElementsByTagname(‘date’);
$date_text_value = $date->item(0)->firstChild->nodeValue;
       
// indeed url
//$myurl = $result->getElementsByTagname(‘url’);
//$myurl_value = $myurl->item(0)->firstChild->nodeValue;
$myurl = $result->getElementsByTagname(‘jobkey’);
$myurl_value = $myurl->item(0)->firstChild->nodeValue;
$jobtitle = $result->getElementsByTagname(‘jobtitle’);
$jobtitle_value = $jobtitle->item(0)->firstChild->nodeValue;
$source = $result->getElementsByTagname(‘source’);
$source_value = $source->item(0)->firstChild->nodeValue;
$snippet = $result->getElementsByTagname(‘snippet’);
$snippet_value = $snippet->item(0)->firstChild->nodeValue;
//print “$date_value.$source_value \n”;

//create an array from the values which can be combined with other feed sources
$myarray[] = array(“link” => “$href”, “title” => “$jobtitle_text_value”, “source” => “$source_text_value”, “description” => “$snippet_text_value”, “date” => “$dateString”);
}