2017 © Pedro Peláez
 

library bikroy

A PHP library for scraping phone numbers from bikroy.com

image

mahedimaruf/bikroy

A PHP library for scraping phone numbers from bikroy.com

  • Wednesday, February 7, 2018
  • by mahedimaruf
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Bikroy.com scraper

Requirements

PHP version 5.4.0 or higher, (*1)

Installation with composer

It is also possible to install library via composer, (*2)

composer require mahedimaruf/bikroy, (*3)

Example usage

require_once 'vendor/autoload.php';

// import goutte
use Goutte\Client;

// Create new goutte client
$bot = new Client();

//Initialize a Instance "bikroy" class
$bikroy = new Mahedimaruf\Bikroy($bot);
$city = 'dhaka';

// Pass the city to start_page method.It will return the first ad list page link to start scraping
$nextlink = $bikroy->start_page($city);
while ($nextlink) {

//Pass page link. It will return an array with all the name and phone numbers from the ad list page and a link to next page.
    $results = $bikroy->scrap($nextlink);
    var_dump($results['details']);

//Set next page link. So script will continue scraping until there is no next link!
    $nextlink = $results['nextlink'];
}

Enjoy. Just don't abuse too much

The Versions

07/02 2018

dev-master

9999999-dev

A PHP library for scraping phone numbers from bikroy.com

  Sources   Download

MIT

The Requires

 

by Mahedi Maruf

07/02 2018

1.0

1.0.0.0

A PHP library for scraping phone numbers from bikroy.com

  Sources   Download

MIT

The Requires

 

by Mahedi Maruf