dev-master
9999999-devOncrawl PHP Toolkit
MIT
The Requires
by Yohann Nizon
1.0.0
1.0.0.0Oncrawl PHP Toolkit
MIT
The Requires
by Yohann Nizon
Wallogit.com
2017 © Pedro Peláez
Oncrawl PHP Toolkit
For Oncrawl API PHP library v2., (*1)
You have 3 files:br/ OncrawlBase is for call the API, define filter, sort...br/ OncrawlAPI is the list of functions available with the API (see http://developer.oncrawl.com)br/ OncrawlCustomAPI is a list of custom functions i need. br/, (*2)
Define your token api or username/password for on crawl on your config/app.phpbr/ (prefer the api key)br/ ONCRAWL_KEYbr/ ONCRAWL_USERNAMEbr/ ONCRAWL_PASSWORDbr/, (*3)
Then, use like this:br/ use OncrawlPHP\OncrawlBase;br/ use OncrawlPHP\OncrawlAPI;br/ use OncrawlPHP\OncrawlCustomAPI;br/ br/ $api = new OncrawlCustomAPI("","",config("app.ONCRAWL_KEY"));// or //$api = new OncrawlCustomAPI(config("app.ONCRAWL_USERNAME"),config("app.ONCRAWL_PASSWORD"),"");, (*4)
//Define segment if you want to filter resultsbr/ $api->setSegmentation("page_group_default:US");, (*5)
//Get projects $json = $api->getProjects();, (*6)
//Get one project $json = $api->getProject($project_id);, (*7)
//Get list of page with status 200 $json = $api->countStatus200($crawl_id);, (*8)
//Export Databr/ $fields[] = "title_evaluation"; $fields[] = "h1_evaluation"; $fields[] = "description_evaluation"; $OqlFields[] = array("field"=>array("meta_robots_index","equals","true")); $OqlFields[] = array("field"=>array("status_code","equals","200")); $OqlFields[] = array("field"=>array("canonical_evaluation","not_equals","not_matching")); $OqlFields[] = array("field"=>array("parsed_html","equals","true")); $s = $api->getExportSEOTags($crawl_id, $fields,$OqlFields); br/, (*9)
Contact: ynizon@gmail.com, (*10)
Oncrawl PHP Toolkit
MIT
Oncrawl PHP Toolkit
MIT