Skip to content

Scrape Nepal Stock Exchange, Nepsi (https://www.nepalstock.com/) website data using puppeteer.

Notifications You must be signed in to change notification settings

AashisMhj/nepse-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepsi API

Nodejs Application to scrape data of www.nepalstock.com using puppeteer, saving to db and later proving the data over rest api.

Packages used

  1. Sequelize: Database ORM.
  2. Express: Web Server.
  3. Puppeteer: For scraping the data.

Installing process

  1. Setup your env file: Copy the content of .env file and make necessary changes if you have to. See .env.example for reference.
  2. Migrate tables
yarn sequelize db:migrate

Scrape Data

  1. scrape today floor data
yarn scrape:floor
  1. scrape trading data The trading scraper currently only scrapes only one company and only the first page. You can change the company, from-date and to-date in the file.
yarn scrape:trade
  1. Run server
yarn dev:server

API Endpoints

API query params
/api/today-price limit:number, offset:number
/api/trading-data limit:number,offset:number

About

Scrape Nepal Stock Exchange, Nepsi (https://www.nepalstock.com/) website data using puppeteer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published