Learn practical skills, build real-world projects, and advance your career

CRISP-DM Model for ML App

  1. Business Understanding
  2. Data understanding
  3. Data preparation
  4. Modelling
  5. Evaluation
  6. Deployement

Data Collection via Web Scrapping

  • The data is normally provided by the client but in this case we are collecting the data via Webscrapping using Yahoo finance.

Yahoo Finance Historical Data WebScrapping

# Customisable URL
yahoo_finance_url = 'https://finance.yahoo.com/quote/{}?p={}'.format(stock)
historicaldata_url = 'https://finance.yahoo.com/quote/{}/history?period1=1482105600&period2=1634601600&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true'.format(stock)
#Using urllib to download the file
from urllib.request import urlretrieve
# Using Pandas to analyse tabular data and read CSV
import pandas as pd