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.
Make sure you have Node.js installed on your system.
- Clone this repository or download the source code.
git clone https://github.com/yourusername/nasdaq-scraper.git
cd nasdaq-scraper
- Install the required dependencies using npm or yarn.
npm install
# or
yarn install
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/
).
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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.