Learn practical skills, build real-world projects, and advance your career
Created 2 years ago
CRISP-DM Model for ML App
- Business Understanding
- Data understanding
- Data preparation
- Modelling
- Evaluation
- 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