Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Request: 401 #33

Closed
pars2721 opened this issue Nov 8, 2023 · 1 comment
Closed

Multi Request: 401 #33

pars2721 opened this issue Nov 8, 2023 · 1 comment

Comments

@pars2721
Copy link

pars2721 commented Nov 8, 2023

Getting requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
due to Unauthorized 401 error resulting after Mimicking FrontPage visit.

Even after using the commit b0b7d36 was not able to resolve the issue

Have raised PR for tackling below issue 70accbf

The main use case is to iterate over all nse_eq symbols

symbols = nse_eq_symbols()
for symbol in symbols[:3]:
    print("This is my symbol :: ",symbol)
    df = nse_eq(symbol)
    print("Price info :: ",df['priceInfo'])
    open_val,high,low,current = df['priceInfo']['open'],df['priceInfo']['intraDayHighLow']['max'],df['priceInfo']['intraDayHighLow']['min'],df['priceInfo']['lastPrice']
    print("Open value :: ",open_val)
    print("High value :: ",high)
    print("Low value :: ",low)
    print("Current value :: ",current) 
@pars2721 pars2721 changed the title Expecting value: line 1 column 1 (char 0) Resolving MultipleRequest:401 Nov 8, 2023
@pars2721 pars2721 changed the title Resolving MultipleRequest:401 Multi Request: 401 Nov 8, 2023
@aeron7
Copy link
Owner

aeron7 commented Nov 28, 2023

@aeron7 aeron7 closed this as completed Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants