nsescraper


Namensescraper JSON
Version 0.0.8 PyPI version JSON
download
home_pagehttps://github.com/U77w41/
SummaryA scraper for https://www.nseindia.com
upload_time2024-11-06 12:58:47
maintainerNone
docs_urlNone
authorUjjwal Chowdhury
requires_python>=3.8
licenseMIT
keywords python nse nifty scraping
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- ```text

███    ██ ███████ ███████ ███████  ██████ ██████   █████  ██████  ███████ ██████  
████   ██ ██      ██      ██      ██      ██   ██ ██   ██ ██   ██ ██      ██   ██ 
██ ██  ██ ███████ █████   ███████ ██      ██████  ███████ ██████  █████   ██████  
██  ██ ██      ██ ██           ██ ██      ██   ██ ██   ██ ██      ██      ██   ██ 
██   ████ ███████ ███████ ███████  ██████ ██   ██ ██   ██ ██      ███████ ██   ██ 
                                                                            
``` -->
<div align="center">
	<img src="https://raw.githubusercontent.com/U77w41/nsescraper/e9f646316e88cabc14178279459e3066a5fcf5a9/nsescraper/nsescraper.svg" />
</div>
<p align="center">
  <a href="https://pypi.org/project/nsescraper"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/nsescraper.svg?maxAge=86400" /></a>
  <a href="https://pypi.org/project/nsescraper"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/nsescraper.svg?maxAge=86400" /></a>
</p>

**nsescraper** is an open-source python package to scrap data from nseindia.com.

## Installation

To install using pip, use

``` python
pip install nsescraper
```

**nsescraper** requires [Python 3](https://www.python.org/) and [Pandas](https://pandas.pydata.org/) 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**:

``` python
from nsescraper import *
```
* **Choose a method:**

To scrap Bulk/Block deals data

``` python
from nsescraper import Stock
stock = Stock('usha mart')
stock.bulk_deals()
```

To scrap trading reports
``` python
from nsescraper import Stock
stock = Stock('usha mart')
stock.trade_reports()
```

To scrap current days nse index/stock data as 1 minute candle format

``` python
intraday_index("nifty 50")
```

``` python
intraday_stock("britannia")
```

To scrap current days nse index/stock data as 1 second tick format

``` python
intraday_index("nifty midcap 100", tick= True)
```

``` python
intraday_stock("dr reddy", tick= True)
```

To scrap current days nse index/stock data as required length minute candle

```python
intraday_index("nifty energy", candlestick= 10)
```

```python
intraday_stock("Zomato", candlestick= 69)
```

To scrap historical nse index/stock data

```python
historical_index('NIFTY 50')
```

```python
historical_stock('ABB')
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/U77w41/",
    "name": "nsescraper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python, NSE, NIFTY, scraping",
    "author": "Ujjwal Chowdhury",
    "author_email": "<u77w41@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3b/d4/7f93ee4360f1576332cdb7d698f03f40c61c507dd3183b694ffc905d7ac0/nsescraper-0.0.8.tar.gz",
    "platform": null,
    "description": "<!-- ```text\n\n\u2588\u2588\u2588    \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588  \n\u2588\u2588\u2588\u2588   \u2588\u2588 \u2588\u2588      \u2588\u2588      \u2588\u2588      \u2588\u2588      \u2588\u2588   \u2588\u2588 \u2588\u2588   \u2588\u2588 \u2588\u2588   \u2588\u2588 \u2588\u2588      \u2588\u2588   \u2588\u2588 \n\u2588\u2588 \u2588\u2588  \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588      \u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588   \u2588\u2588\u2588\u2588\u2588\u2588  \n\u2588\u2588  \u2588\u2588 \u2588\u2588      \u2588\u2588 \u2588\u2588           \u2588\u2588 \u2588\u2588      \u2588\u2588   \u2588\u2588 \u2588\u2588   \u2588\u2588 \u2588\u2588      \u2588\u2588      \u2588\u2588   \u2588\u2588 \n\u2588\u2588   \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588  \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588   \u2588\u2588 \u2588\u2588   \u2588\u2588 \u2588\u2588      \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588   \u2588\u2588 \n                                                                            \n``` -->\n<div align=\"center\">\n\t<img src=\"https://raw.githubusercontent.com/U77w41/nsescraper/e9f646316e88cabc14178279459e3066a5fcf5a9/nsescraper/nsescraper.svg\" />\n</div>\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/nsescraper\"><img alt=\"PyPI Version\" src=\"https://img.shields.io/pypi/v/nsescraper.svg?maxAge=86400\" /></a>\n  <a href=\"https://pypi.org/project/nsescraper\"><img alt=\"Python Versions\" src=\"https://img.shields.io/pypi/pyversions/nsescraper.svg?maxAge=86400\" /></a>\n</p>\n\n**nsescraper** is an open-source python package to scrap data from nseindia.com.\n\n## Installation\n\nTo install using pip, use\n\n``` python\npip install nsescraper\n```\n\n**nsescraper** requires [Python 3](https://www.python.org/) and [Pandas](https://pandas.pydata.org/) to execute.\n\n## Features:\n\n**nsescraper** package contains different functions such as:\n\n- **intraday_index**: Scrapes intra day data for any index from NSE\n- **intraday_stock**: Scrapes intra day data for any listed stock from NSE\n\n## Usage\n\n* **Import the library**:\n\n``` python\nfrom nsescraper import *\n```\n* **Choose a method:**\n\nTo scrap Bulk/Block deals data\n\n``` python\nfrom nsescraper import Stock\nstock = Stock('usha mart')\nstock.bulk_deals()\n```\n\nTo scrap trading reports\n``` python\nfrom nsescraper import Stock\nstock = Stock('usha mart')\nstock.trade_reports()\n```\n\nTo scrap current days nse index/stock data as 1 minute candle format\n\n``` python\nintraday_index(\"nifty 50\")\n```\n\n``` python\nintraday_stock(\"britannia\")\n```\n\nTo scrap current days nse index/stock data as 1 second tick format\n\n``` python\nintraday_index(\"nifty midcap 100\", tick= True)\n```\n\n``` python\nintraday_stock(\"dr reddy\", tick= True)\n```\n\nTo scrap current days nse index/stock data as required length minute candle\n\n```python\nintraday_index(\"nifty energy\", candlestick= 10)\n```\n\n```python\nintraday_stock(\"Zomato\", candlestick= 69)\n```\n\nTo scrap historical nse index/stock data\n\n```python\nhistorical_index('NIFTY 50')\n```\n\n```python\nhistorical_stock('ABB')\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A scraper for https://www.nseindia.com",
    "version": "0.0.8",
    "project_urls": {
        "Homepage": "https://github.com/U77w41/"
    },
    "split_keywords": [
        "python",
        " nse",
        " nifty",
        " scraping"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1730fa633f23d59510156a54fdb9c2bf70791041d8b2586b6d72bb6e41bf42b8",
                "md5": "8d4eae8ec035321ce29ab2485dbda275",
                "sha256": "74e33661f0864b18cff97a88573d7cd75f8ae754a1e0c10743150e843645d1bf"
            },
            "downloads": -1,
            "filename": "nsescraper-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8d4eae8ec035321ce29ab2485dbda275",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 21203,
            "upload_time": "2024-11-06T12:58:45",
            "upload_time_iso_8601": "2024-11-06T12:58:45.970560Z",
            "url": "https://files.pythonhosted.org/packages/17/30/fa633f23d59510156a54fdb9c2bf70791041d8b2586b6d72bb6e41bf42b8/nsescraper-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bd47f93ee4360f1576332cdb7d698f03f40c61c507dd3183b694ffc905d7ac0",
                "md5": "e20115f7e6fa16981fe99b2e16f61f98",
                "sha256": "7968716ffc09a9300c8766fadd2c748d13a58c8df3dc7651234c67d800779588"
            },
            "downloads": -1,
            "filename": "nsescraper-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "e20115f7e6fa16981fe99b2e16f61f98",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 16006,
            "upload_time": "2024-11-06T12:58:47",
            "upload_time_iso_8601": "2024-11-06T12:58:47.778947Z",
            "url": "https://files.pythonhosted.org/packages/3b/d4/7f93ee4360f1576332cdb7d698f03f40c61c507dd3183b694ffc905d7ac0/nsescraper-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-06 12:58:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nsescraper"
}
        
Elapsed time: 3.73951s