Finding the best place to stay with Price/Review from Booking.com using web-scraping via a local web-app.
Aim to provide Price/Review Score of the places located in the specified city, when finding a place to stay in that city during a trip.
A lower Price/Review Score indicates that the place is not expensive, yet, with a great review score.
- Install Docker Desktop
- Click here to download Docker Desktop.
- Follow the instructions on the website to install it on your computer.
- Download Web App Assets
- Click here to Click here to download the web-app assets.
- Extract the ZIP file.
-
Find Your User Agent
- Open your web browser and go to What Is My Browser.
- You will see a message that shows your User Agent. Copy this text.
-
Edit the Configuration File
- Open the
docker-compose.yml
file you extracted from the ZIP file in a text editor (like Notepad). - Look for the line that says
USER_AGENT
. Replaceyour_user_agent
text with the User Agent you copied. - Save the file and close the text editor.
- Open the
-
Start the Web App
- Make sure that the Docker Desktop is running.
- If not, start the Docker Desktop.
- Double-click the executable file:
- Windows: Double-click
app-windows.exe
- macOS: Double-click
app-mac
- Linux: Double-click
app-linux
- Windows: Double-click
- Make sure that the Docker Desktop is running.
-
Check the Terminal:
- A terminal window will open, indicating that the web app is starting. You should see messages in the terminal that confirm the app is launching.
-
Access the Web App
- Open your web browser and go to: http://localhost:5000/
- Press
Enter
as prompted in the terminal.- Alternatively, you can open Docker Desktop and stop the container from the Containers section.
-
When filling out the form, please use abbreviations for currency:
- For example, if you want to select the US Dollar, enter USD in the currency tab.
-
If you tick the Scrape Hotel Properties Only box, the scraper will only gather data on hotels.
- If you leave this box unticked, the scraper will retrieve information on all types of places available through Booking.com in the specified city.
-
When entering the country in the form, please provide the full name of the country.
- Do not use abbreviations.