Skip to content

Web Scraper that would find the cheapest flight/hotels on Vegas strip

Notifications You must be signed in to change notification settings

carchi8py/Vacation-Scraper-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vacation-Scraper-2

Quality Gate

This web scraper finds the cheapest hotel prices in Vegas

Prerequisites

Python 3

pip3 install bs4
pip3 install flask
pip3 install sqlalchemy
pip3 install selenium

Chrome Drivers

You'll need Chrome Drivers installed somewhere or Selenium will fail. just follow this stack overflow page https://stackoverflow.com/questions/13724778/how-to-run-selenium-webdriver-test-cases-in-chrome

Getting started

First run the database script to create a sqlite db to store the data in

python3 database_setup.py

Next run the vegas script, this will scrape each of the supported hotels. While this is running chrome will open in the background.

python3 hotel/vegas.py

Last run the webpage scrip

python3 webpage.py

Web site pages

Cheapest for a month -- In the example below 11 = the month (November), and the 4 is the number of day you want to stay.

localhost:5000/cheapest/11/4

Cheapest for all months -- In the example below 4 = the number of days, this will look though every data in the database

localhost:5000/all/4

About

Web Scraper that would find the cheapest flight/hotels on Vegas strip

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published