Scraping data using puppeteer and building a linear regression model
·
Report Bug
·
Request Feature
Table of Contents
During the session we will cover how to scrape data from websites using a practical example. We will then use the data to model a linear regression algorithm to help predict the price of a car given several attributes. The session will flow as follows:
-
A background on what machine learning is
-
How linear regression works
-
Web scraping using a headless browser (puppeteer)
-
Concurrency when scraping to speed up the process.
-
Exporting the data
-
Importing the data in our Jupyter notebook
-
Data cleaning
-
Data exploration
-
Data modeling
-
Challenge
To ensure you gain the most out of this session please make sure you have the following installed:
To run the webscrapper
- Clone the repo
git clone https://github.com/wamaithanyamu/SBT-Japan-linear-regression-model.git
- Install NPM packages
npm install
- Run the webscrapping script
node webScraper.js
- Run the jupyter notebook using anaconda or upload it to google collab or kaggle.
- Use the data final.json to run the notebook
- Web scrapping ✅
- Data cleaning ✅
- EDA ✅
- Build Linear regression model ✅
- Hyper parameter tuning
- Serve model
- Build API
- Frontend
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Tweet me at- @wamaithanyamu or shoot me an email at [email protected]
Project Link: https://github.com/wamaithanyamu/SBT-Japan-linear-regression-model