本文整理匯總了PHP中scraperwiki::save_sqlLite方法的典型用法代碼示例。如果您正苦於以下問題:PHP scraperwiki::save_sqlLite方法的具體用法?PHP scraperwiki::save_sqlLite怎麽用?PHP scraperwiki::save_sqlLite使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類scraperwiki
的用法示例。
在下文中一共展示了scraperwiki::save_sqlLite方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
//echo "this is the value of data---- " . $data . "..................STOP";
$tds = $data->find('<td.white');
//echo "this is the value of tds---- " . $tds ;
$getID = $data->find('<td.white', 15);
//$getID = $getID->plaintext;
if ($getID == '') {
//echo $getID;
} else {
//echo $getID;
//get the TD for every TR
//save the TD into a $record array
$record = array('FNamelbl' => $tds[0]->plaintext, 'FName' => $tds[1]->plaintext, 'LNamelbl' => $tds[2]->plaintext, 'LName' => $tds[3]->plaintext, 'MIlbl' => $tds[4]->plaintext, 'MI' => $tds[5]->plaintext, 'Genderlbl' => $tds[6]->plaintext, 'Gender' => $tds[7]->plaintext, 'Citylbl' => $tds[8]->plaintext, 'City' => $tds[9]->plaintext, 'Statelbl' => $tds[10]->plaintext, 'State' => $tds[11]->plaintext, 'MuniCodelbl' => $tds[12]->plaintext, 'MuniCode' => $tds[13]->plaintext, 'IDNumlbl' => $tds[14]->plaintext, 'IDNum' => $tds[15]->plaintext, 'EMT-Blbl' => $tds[16]->plaintext, 'CertStauslbl' => $tds[17]->plaintext, 'CertStaus' => $tds[18]->plaintext, 'InitCertlbl' => $tds[19]->plaintext, 'InitCert' => $tds[20]->plaintext, 'CertStartDatelbl' => $tds[21]->plaintext, 'CertStartDate' => $tds[22]->plaintext, 'CertExpDatelbl' => $tds[23]->plaintext, 'CertExpDate' => $tds[24]->plaintext, 'ParaCertlbl' => $tds[25]->plaintext, 'PCertStauslbl' => $tds[26]->plaintext, 'PCertStaus' => $tds[27]->plaintext, 'PInitCertlbl' => $tds[28]->plaintext, 'PInitCert' => $tds[29]->plaintext, 'PCertStartDatelbl' => $tds[30]->plaintext, 'PCertStartDate' => $tds[31]->plaintext, 'PCertExpDatelbl' => $tds[32]->plaintext, 'PCertExpDate' => $tds[33]->plaintext);
//print for debugging
//print json_encode($record) . "\n";
//scraperwiki::save created a temporary datastore to view in the Data tab. 'Name' is indexed
scraperwiki::save_sqlLite(array('LName'), $record);
}
//- end if
}
//- end foreach
}
//- end foreach
/*
* Build URLS and save to $sources array
*/
function buildUrl()
{
global $sources;
for ($i = 90844; $i <= 90850; $i++) {
$fullUrl = 'https://www.njoemscert.com/extCertView/index.cfm?fuseaction=UserDetail&intuserid=' . '' . $i . '' . chr(13) . chr(10);
//echo $fullUrl ;