Top secret project.
composer require scrapekit/scrapekit
ScrapeKit Browser uses Chrome DevTools Protocol.
$tab = scrapekit()->chrome('http://localhost:9222')->tabs()->new();
$tab->geo( 45, 21 )
->navigate( 'https://mylocation.org/' )
->find( '[aria-controls="geo-div"]' )->click()
->tab()
->find( '#geo-test' )->click()
->tab()
->pause( 100 )
->geo()
->navigate( 'https://mylocation.org/' )
->find( '[aria-controls="geo-div"]' )->click()
->tab()
->find( '#geo-test' )->click();
$tab->pause( 100 );
$lat = $tab->find( '#geo-latitude' )->text();
$lng = $tab->find( '#geo-longitude' )->text();
$tab->close();
ScrapeKit HTTP uses Guzzle, exposing a simple and powerful API with on-demand complexity.
Make a single GET request and grab the response:
$html = scrapekit()->http()->request('http://httpbin.org')->body();
$headers = scrapekit()->http()->request('http://httpbin.org/anything')->headers()->all();
Use Request object and parse JSON response:
$array = scrapekit()->http()->request( Request::make('http://httpbin.org/anything')->parseResponseWith( JsonParser::class ) )->parse()->data();
TODO
TODO
TODO