2017 © Pedro Peláez
 

library bookingcom

Scrape properties from booking.com

image

marioflores/bookingcom

Scrape properties from booking.com

  • Wednesday, October 18, 2017
  • by umlouco
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

Bookingcom scrape

Bookingcom scrape is a tool to gather information about properties in the well known site booking.com, (*1)

Install unsing composer, (*2)

"require": { "marioflores/bookingcom": "dev-master" }, (*3)

```php use MarioFlores\Bookingcom\Bookingcom;, (*4)

$booking = new Bookingcom;, (*5)

/** * Get the first search result page * * use parameters from original url on booking.com site * * search('dest_id', 'dest_type') */, (*6)

$first_search_results = $booking->search('3343', 'region');, (*7)

//fetch all individual hotel links form serach result, (*8)

$all_links = $booking->listAllHotels($first_search_results);, (*9)

var_dump($all_links);, (*10)

//fetch data from one hotel using link, (*11)

$hotel = $booking->getHotel($all_links[0]);, (*12)

//fetch url of photos, (*13)

$photos = $booking->getPhotos($all_links[0]);, (*14)

//fetch price, (*15)

$price = $booking->getPrice($all_links[0]);, (*16)

The Versions

18/10 2017

dev-master

9999999-dev

Scrape properties from booking.com

  Sources   Download

MIT

The Requires

 

by Mario Flores

booking scrape