mconour / nasdaq-scraping

This is a simple Node.js application for scraping data from the NASDAQ stock exchange. It fetches information about companies listed on NASDAQ, such as their symbols, names, last sale prices, market capitalization, IPO years, sectors, industries, and summary quotes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NASDAQ Stock Scraper

This is a simple Node.js application for scraping data from the NASDAQ stock exchange. It fetches information about companies listed on NASDAQ, such as their symbols, names, last sale prices, market capitalization, IPO years, sectors, industries, and summary quotes.

Getting Started

Make sure you have Node.js installed on your system.

Installation

  1. Clone this repository or download the source code.
git clone https://github.com/yourusername/nasdaq-scraper.git
cd nasdaq-scraper
  1. Install the required dependencies using npm or yarn.
npm install
# or
yarn install

Usage

To start the server, run:

npm start
# or
yarn start

The application will start a server on the specified port (default is 5000). You can access the data by sending an HTTP GET request to the root endpoint (e.g., http://localhost:5000/).

Data Format

The data is returned in JSON format and includes the following fields for each company:

  • symbol: The stock symbol of the company.
  • name: The name of the company.
  • lastSale: The last sale price of the stock.
  • marketCap: The market capitalization of the company.
  • ipoYear: The year of the company's initial public offering (IPO).
  • sector: The sector to which the company belongs.
  • industry: The industry to which the company belongs.
  • summaryQuote: A summary quote or link for the company.

Dependencies

This project uses the following Node.js packages:

  • Express: A web framework for Node.js.
  • Axios: A promise-based HTTP client for making requests.
  • CORS: Middleware for handling Cross-Origin Resource Sharing.

License

This project is licensed under the MIT License - see the LICENSE file for details.


About

This is a simple Node.js application for scraping data from the NASDAQ stock exchange. It fetches information about companies listed on NASDAQ, such as their symbols, names, last sale prices, market capitalization, IPO years, sectors, industries, and summary quotes.


Languages

Language:JavaScript 100.0%