Web scraper
Web scraper
Practice Problems
Assignment Questions
Assignment Questions
Problem Statement
Relevel is facing issues in getting updates on the stock market. So, they have planned to build an application
that can scrap moneycontrol websites and fetch the price of a few selected stocks for example (Infosys,
TataSteel) for both NSE and BSE at realtime and save it in a PDF.
Your task is to go through the Problem Statement, Requirements and create an Web Scraper clone for
Relevel.
Follow the standard naming conventions and comment on the code well, so that it is easily understandable.
We are looking for a basic working prototype so make your assumptions accordingly and pace yourself.
Pre-requisites
The candidate should make sure GIT, NodeJS and MongoDB are already installed on their system
before starting the development.
User Stories
Problem 1 (Estimated Time to complete ~2 Hours)
Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Scrap stock prices from website.
- Add appropriate request body to scrap NSE and BSE stock price.
- Validate the request. For example if the request has a valid email ID, the password is strong.
Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Download the prices in PDF format.
- It will save the values in PDF format and download it in local machine
- Validate the request. For example if the request has a valid email ID, the password is strong.
Assignment Questions
Assignment Solutions
Solution
https://github.com/Gtgstg/Web-Scrapper
User Stories
Problem 1 (Estimated Time to complete ~2 Hours)
Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Scrap stock prices from website.
- Add appropriate request body to scrap NSE and BSE stock price.
- Validate the request. For example if the request has a valid email ID, the password is strong.
Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Download the prices in PDF format.
- It will save the values in PDF format and download it in local machine
- Validate the request. For example if the request has a valid email ID, the password is strong.