dev-master
9999999-devScrape properties from booking.com
MIT
The Requires
by Mario Flores
booking scrape
Wallogit.com
2017 © Pedro Peláez
Scrape properties from booking.com
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)
Scrape properties from booking.com
MIT
booking scrape