2017 © Pedro Peláez
 

library bing-scraper

Scrapes search results from Bing Image and Web Search.

image

mojopollo/bing-scraper

Scrapes search results from Bing Image and Web Search.

  • Wednesday, May 25, 2016
  • by mojopollo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Bing Scraper (In Progress)

Scrapes search results from Bing Image and Web Search., (*1)

, (*2)

Installation

Composer and vanilla PHP

Add this package to your composer.json file with the following command, (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add BingScraper as a dependency
php composer.phar require mojopollo/bing-scraper

Next, require Composer's autoloader in your application to automatically load the BingScraper class into your project:, (*4)

// Load the composer autoloader
require 'vendor/autoload.php';

// Alias the scraper classes
use Mojopollo\BingScraper\Image as BingImageScraper;
use Mojopollo\BingScraper\Web as BingWebScraper;

Composer and Laravel 5

composer require mojopollo/bing-scraper

Next, add the following laravel 5 service provider by modifying your app/Providers/AppServiceProvider.php as so:, (*5)

public function register()
{
    $this->app->register('Mojopollo\BingScraper\ImageServiceProvider');
}

, (*6)

Usage

, (*7)

In progress, (*8)

Laravel

```php, (*9)



#### Vanilla PHP ```php // Load the composer autoloader require 'vendor/autoload.php'; // Alias the scraper image class use Mojopollo\BingScraper\Image as BingImageScraper; // Instantiate image scraper class $bingImageScraper = new BingImageScraper; // Set options and scrape // see "options" section in this readme for all available options $bingImageScraper ->query('sloth smiling') ->safe('strict') ->type('photograph') ->scrape(); // This is what you get back // [ // 'meta' => [ // 'status' => 200, // 'error' => null, // 'count' => 20 // ], // 'results' => [ // [ // 'url' => 'http://example.com/my-sloths', // 'image' => 'http://example.com/my-sloths/images/sloth-smiling.jpg', // 'width' => '1900', // 'height' => '600', // 'format' => 'jpeg', // 'meta' => [ // 'ns' => 'images', // 'k' => '3599', // 'mid' => 'FXDP1BZ7EHN12BL7O2QVTZOXO0UYTGSRDHKF1COX', // 'cid' => 'zAN2dtE2', // 'md5' => '49f68a5c8493ec2c0bf489821c21fc3b', // 'tid' => 'OIP.O6qE4AQEPKPewVVT746gVXk6dqMNIsQEybC', // 'docid' => '329832932856960383', // 'tft' => '45', // 'mw' => '634', // 'mh' => '1024', // 'thH' => '300', // 'thW' => '18'" // ] // ], // ... // ] // ]

The Versions

25/05 2016

dev-feature/request-mocks

dev-feature/request-mocks

Scrapes search results from Bing Image and Web Search.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jaime Medina

laravel bing scraper bing scraper bing search mojo mojopollo bing images bing image search bing web search

19/05 2016

dev-master

9999999-dev

Scrapes search results from Bing Image and Web Search.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jaime Medina

laravel bing scraper bing scraper bing search mojo mojopollo bing images bing image search bing web search

17/05 2016

0.1.2

0.1.2.0

Scrapes search results from Bing Image and Web Search.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jaime Medina

17/05 2016

0.1.1

0.1.1.0

Scrapes search results from Bing Image and Web Search.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jaime Medina

laravel bing scraper bing scraper bing search mojo mojopollo bing images bing image search bing web search

17/05 2016

0.1.0

0.1.0.0

Scrapes search results from Bing Image and Web Search.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jaime Medina

laravel bing scraper bing scraper bing search mojo mojopollo bing images bing image search bing web search