2017 © Pedro Peláez
 

library oncrawl-php

Oncrawl PHP Toolkit

image

ynizon/oncrawl-php

Oncrawl PHP Toolkit

  • Tuesday, April 24, 2018
  • by ynizon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

oncrawl-php

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)

The Versions

24/04 2018

dev-master

9999999-dev

Oncrawl PHP Toolkit

  Sources   Download

MIT

The Requires

 

by Yohann Nizon

24/04 2018

1.0.0

1.0.0.0

Oncrawl PHP Toolkit

  Sources   Download

MIT

The Requires

 

by Yohann Nizon