Skip to main content

A Scraper for https://www.nseindia.com

Project description

PyPI Version Python Versions

nsescraper is a an open-source python package to clean raw text data.

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 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

nsescraper-0.0.6.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

nsescraper-0.0.6-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page