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

Adding more cookie and custom user agent to be able to call NSE /api URLs #68

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

utpalsapre
Copy link
Contributor

I recently observed that I can't call https://www.nseindia.com/api/* URLs anymore. Application would just hang when I called the /api urls. On further investigation I found, NSE started to put couple more cookies which are require to be send in /api requests otherwise NSE would respond "Unauthorized". So in this pull request I have added those new cookies. I also observed that NSE has probably started checking User-Agent in requests as well, though I am not very sure about it.

Copy link
Member

@asrafalih asrafalih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

They are expecting only User-Agent not those cookies. Still its ok we can pass those cookies as well.

@asrafalih asrafalih merged commit 302c579 into hi-imcodeman:master Nov 20, 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

Successfully merging this pull request may close these issues.

3 participants