0% found this document useful (0 votes)
0 views

Web scraper

Relevel aims to develop a web scraper application to fetch real-time stock prices from moneycontrol for selected stocks on NSE and BSE, saving the data in PDF format. The project includes creating API endpoints for scraping stock prices and downloading them in PDF, with proper validation and response codes. Candidates must have GIT, NodeJS, and MongoDB installed, and follow standard coding practices.

Uploaded by

jj491bendreacc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Web scraper

Relevel aims to develop a web scraper application to fetch real-time stock prices from moneycontrol for selected stocks on NSE and BSE, saving the data in PDF format. The project includes creating API endpoints for scraping stock prices and downloading them in PDF, with proper validation and response codes. Candidates must have GIT, NodeJS, and MongoDB installed, and follow standard coding practices.

Uploaded by

jj491bendreacc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

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)

Story-2 (Scrap stocks price from website)

Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Scrap stock prices from website.

- Create an API endpoint “/arbitrage”

- 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.

- Store information at the backend in proper tables.

- For success, return proper response codes.

- For failure, return proper response codes.

- Use an appropriate HTTP method out of GET, POST, PUT,PATCH,DELETE, etc.

Problem 1 (Estimated Time to complete ~1.5 Hours)

Story-4 (Download the prices in PDF format Functionality)

Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Download the prices in PDF format.

- Create an API endpoint “/download”

- 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

- Store information at the backend in proper tables.

- For success, return proper response codes.

- For failure, return proper response codes.

- Use an appropriate HTTP method out of GET, POST, PUT,PATCH,DELETE, etc.


Web Scraper
Practice Problems
Assignment Solutions

Assignment Solutions
Solution
https://github.com/Gtgstg/Web-Scrapper

User Stories
Problem 1 (Estimated Time to complete ~2 Hours)

Story-2 (Scrap stocks price from website)

Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Scrap stock prices from website.

- Create an API endpoint “/arbitrage”

- 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.

- Store information at the backend in proper tables.

- For success, return proper response codes.

- For failure, return proper response codes.

- Use an appropriate HTTP method out of GET, POST, PUT,PATCH,DELETE, etc.

Problem 1 (Estimated Time to complete ~1.5 Hours)

Story-4 (Download the prices in PDF format Functionality)

Your APIs should provide the following functionality to downstream consumers of the API (in a RESTful
way)
Download the prices in PDF format.

- Create an API endpoint “/download”

- 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.

- Store information at the backend in proper tables.

- For success, return proper response codes.

- For failure, return proper response codes.

- Use an appropriate HTTP method out of GET, POST, PUT,PATCH,DELETE, etc.

You might also like