Section 1: Build an App to Find Cheap
Airfares
1.1 The Course
Overview
This video gives an overview of the entire course.
Click Here to Download
1.2 Sourcing Airfare Pricing Data
We need the air pricing data from a website to work with.
You will learn to do that in this section.
· Get flight explorer and look at an example
Click Here to Download
1.3 Retrieving the Fare Data with Advanced
Web Scraping Techniques
After determining the source of the data, we need to
retrieve the data.
· Install Phantom JS and the necessary libraries
·
Instantiate the browser object
·
Send the user agent to the receiving server
Click Here to Download
1.4 Parsing the DOM to Extract Pricing
Data
DOM is the structure of elements that form the web page. We
need to get some details of the structure by parsing it.
·
Feed the page source and retrieve a list of best
prices
·
Extract the best price or the cheapest price
·
Identify outliers with clustering techniques
Click Here to Download
1.5 Sending Real-Time Alerts Using IFTTT
To get real-time alerts when a particular event occurs, we
need to use IFTTT.
·
Sign up for the Maker channel
·
Create an event fare alert
·
Fill in the message and customize it
Click Here to Download
1.6 Putting It All Together
To deploy our app, we'll move on to working in a text
editor. You will put together the entire code to get the final result.
·
Import packages
·
Create a function that pulls down the data and
runs your clustering algorithm
·
Include a scheduler and run the file from the
command line
0 Comments