Skip to content

sdclarkelab/jamstockex-scraper

Repository files navigation

StockWatchJa: JamStockEx Scraper

The StockWatchJa: JamStockEx Scraper scrapes the Jamaica Stock Exchange website daily using Python and saves to a MongoDB collection. The data is then served as JSON by StockWatchJA: JamStockEx API at this URL.

The following stock data is scraped:

  • All Listed Stocks
  • Dividends pending payout dates
  • Stock details:
    • Name
    • Instrument Code
    • Currency
    • Sector
    • Type
    • Website
    • Market
    • Volume Traded
    • Dollar Change
    • Market Price
    • Percentage Change

Requirements

Tool Version Source
Python 3.7.0 Python 3.7.0 Release
Windows OS 10 -

Create Secrets.json file

Create ".env" in application root folder

NODE_ENV=dev
DB_CONN_STR="<MongoDB-node-2.2.12-connection-string>"
DB_NAME=stockwatch
STOCK_COL=stock

Initialize database

python main.py