A scraper for https://www.nseindia.com
Project description
nsescraper is an open-source python package to scrap data from nseindia.com.
Installation
To install using pip, use
pip install nsescraper
nsescraper requires Python 3 and Pandas to execute.
Features:
nsescraper package contains different functions such as:
- intraday_index: Scrapes intra day data for any index from NSE
- intraday_stock: Scrapes intra day data for any listed stock from NSE
Usage
- Import the library:
from nsescraper import *
- Choose a method:
To scrap Bulk/Block deals data
from nsescraper import Stock
stock = Stock('usha mart')
stock.bulk_deals()
To scrap trading reports
from nsescraper import Stock
stock = Stock('usha mart')
stock.trade_reports()
To scrap current days nse index/stock data as 1 minute candle format
intraday_index("nifty 50")
intraday_stock("britannia")
To scrap current days nse index/stock data as 1 second tick format
intraday_index("nifty midcap 100", tick= True)
intraday_stock("dr reddy", tick= True)
To scrap current days nse index/stock data as required length minute candle
intraday_index("nifty energy", candlestick= 10)
intraday_stock("Zomato", candlestick= 69)
To scrap historical nse index/stock data
historical_index('NIFTY 50')
historical_stock('ABB')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nsescraper-0.0.8.tar.gz
.
File metadata
- Download URL: nsescraper-0.0.8.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7968716ffc09a9300c8766fadd2c748d13a58c8df3dc7651234c67d800779588 |
|
MD5 | e20115f7e6fa16981fe99b2e16f61f98 |
|
BLAKE2b-256 | 3bd47f93ee4360f1576332cdb7d698f03f40c61c507dd3183b694ffc905d7ac0 |
File details
Details for the file nsescraper-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: nsescraper-0.0.8-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e33661f0864b18cff97a88573d7cd75f8ae754a1e0c10743150e843645d1bf |
|
MD5 | 8d4eae8ec035321ce29ab2485dbda275 |
|
BLAKE2b-256 | 1730fa633f23d59510156a54fdb9c2bf70791041d8b2586b6d72bb6e41bf42b8 |