https://github.com/techlism/indian_stock_market_data
https://github.com/techlism/indian_stock_market_data
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/techlism/indian_stock_market_data
- Owner: techlism
- Created: 2023-12-19T16:19:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T10:25:11.000Z (over 2 years ago)
- Last Synced: 2025-01-19T07:13:09.259Z (over 1 year ago)
- Language: Python
- Size: 38.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stock Market Index Data Web Scraper
This Python application uses Selenium and FastAPI to scrape stock market data from the web and serve it through a REST API.
## Features
- Retrieves Sensex and Nifty values from the web.
- Serves the scraped data through a FastAPI server.
## Requirements
- Python 3.10 or higher
- Docker
- Firefox ESR browser
## Installation
1. Clone the repository.
2. Navigate to the project directory.
3. Build the Docker image using the provided Dockerfile.
## Usage
Once the server is running, you can access the following endpoints:
- `GET /`: Returns a base address message.
- `GET /sensex-value`: Returns the current Sensex value.
- `GET /nifty-value`: Returns the current Nifty value.
## Note
This application is designed to be run in a Docker container. The Dockerfile sets up a Python environment, installs Firefox ESR and geckodriver for Selenium, and starts the FastAPI server.
The application uses Selenium to interact with the web pages and scrape the data. The scraped data is then served through a FastAPI server. The server has endpoints for getting the current Sensex and Nifty values.
Please note that this application is intended for educational purposes and should not be used for commercial purposes without permission from the data providers. Always respect the terms of service of the website you are scraping.