Vishmay Dhruv
Vishmay Dhruv

Reputation: 11

HTTP error while accessing the nsetools library in python

How to solve this HTTP error while accessing the nsetools library in python?

After installing nsetools via pip install nsetools --upgrade, I performed these steps:

from nsetools import Nse
import pandas as pd , numpy as np
nse = Nse()
x = nse.get_quote('infy')

Line no. 4 returns this error:

HTTPError: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently

I am working in Jupyter notebook and I have tried restarting the kernel, upgrading the library...

Upvotes: 0

Views: 2954

Answers (1)

Niranjan Khedkar
Niranjan Khedkar

Reputation: 11

Hey so I got the soln to this issue Actually, the nse site is changed and that's why the package is showing these issues The developer has pushed the working code in GitHub just download the package from GitHub and paste it into the respective directory the working package is yet to release

pls refer to this link https://github.com/vsjha18/nsetools

Upvotes: 0

Related Questions