1. Go to this page and download the library: Download buchin/bing library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
buchin / bing example snippets
use Buchin\Bing\Web;
$webScraper = new Web;
// first params
return array
array(10) {
[0]=>
array(4) {
["title"]=>
string(39) "Makan Nasi Sama Garam - leutikaprio.com"
["link"]=>
string(73) "http://www.leutikaprio.com/main/media/sample/ngakak%20sejenak%20smple.pdf"
["description"]=>
string(155) "Fanny Fredlina 1 Makan Nasi Sama Garam Hati-hati kalau ingin memberikan rayuan gombal. Apalagi yang rada lebay. Jangan sampai terjadi hal yang seperti ini."
["pubdate"]=>
string(29) "Fri, 25 Nov 2016 17:33:00 GMT"
}
...
*/
use Buchin\Bing\Image;
$imageScraper = new Image;
$images = $imageScraper->scrape('telolet om', '', ['image_size' => 'extra_large']);
/*
Contoh hasil:
[27]=>
array(4) {
["mediaurl"]=>
string(112) "http://www.radarpekalongan.com/wp-content/uploads/2016/06/Mengintip-Keseruan-Bocah-Pemburu-Telolet-di-Batang.jpg"
["link"]=>
string(100) "http://www.radarpekalongan.com/24530/mengintip-keseruan-bocah-pemburu-telolet-klakson-bus-di-batang/"
["title"]=>
string(68) "Mengintip Keseruan Bocah Pemburu 'Telolet' Klakson Bus di Batang ..."
["size"]=>
string(19) "700 x 400 jpeg 81kB"
}
*/