Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zoranpandovski/bookingscraper

:earth_americas: :hotel: Scrape Booking.com :hotel: :earth_americas:
https://github.com/zoranpandovski/bookingscraper

beautifulsoup booking python3 request scraper web-scraping webscraper webscraping

Last synced: 17 days ago
JSON representation

:earth_americas: :hotel: Scrape Booking.com :hotel: :earth_americas:

Awesome Lists containing this project

README

        

[![Build Status](https://img.shields.io/travis/ZoranPandovski/BookingScraper/master.svg?logo=travis)](https://travis-ci.org/ZoranPandovski/BookingScraper)
[![Coverage Status](https://coveralls.io/repos/github/ZoranPandovski/BookingScraper/badge.svg?branch=master)](https://coveralls.io/github/ZoranPandovski/BookingScraper?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a17cb028c594405e9235c724d6b45b50)](https://app.codacy.com/app/ZoranPandovski/BookingScraper?utm_source=github.com&utm_medium=referral&utm_content=ZoranPandovski/BookingScraper&utm_campaign=badger)
[![BCH compliance](https://bettercodehub.com/edge/badge/ZoranPandovski/BookingScraper?branch=master)](https://bettercodehub.com/)
[![Known Vulnerabilities](https://snyk.io/test/github/ZoranPandovski/BookingScraper/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/ZoranPandovski/BookingScraper?targetFile=requirements.txt)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/ZoranPandovski/BookingScraper.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ZoranPandovski/BookingScraper/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ZoranPandovski/BookingScraper.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ZoranPandovski/BookingScraper/context:python)
[![Run on Repl.it](https://repl.it/badge/github/ZoranPandovski/BookingScraper)](https://repl.it/github/ZoranPandovski/BookingScraper)
# Booking site web scraper

Web scraper that downloads all of the accommodations for the chosen country and saves them in a file.

## Installation
Create virtual environment and run:

`pip install -r requirements.txt`

After that just run booking script:

`python booking.py`

## Autocompletion
If you want to use the feature of the autocompletion run:

`activate-global-python-argcomplete`

After that open new terminal in order to update and load new settings.

## TBD
* Add option for choosing a time frame.
* Add option for choosing the number of rooms.

## Disclaimer
Data fetched from booking is only for personal use, you are not allowed to copy and paste content from Booking.com on to your own or third party pages (including social media pages such as Facebook, Twitter, Instagram etc.).

This applies to all types of content that can be found on Booking.com pages, including but not limited to hotel descriptions, reviews, hotel and room photos, hotel facility information, and prices. Moreover, this restriction also applies to content from Booking.com partner hotel websites and Booking Holdings Group company brands: such as Agoda, Priceline, Kayak, OpenTable, Rentalcars.

Clause 4.1.5 from Booking.com Affiliate Agreement: The Affiliate shall not programmatically evaluate and extract information (including guest reviews) from any part of the Booking.com Website (e.g. screen scrape).