I am hitting an error while calling the Result API. I was earlier using the older method nse_events() in the older version of nsepython and it was working fine but in the newer version of nsepython (2.6), both nse_events() & nse_results() throw an error.
ipdb> nse_**results()**
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ipdb> nse_**results**("equities","Others")
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ipdb> nse_**events()**
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Anyone else having the same issue?
For now, I rolled back to older version that is working on my other machine using below command, and I am able to get events data again. I was earlier on v2.6
I thank you a lot. This is what happens in democracy. I had patched a code by someone in this forum and it worked for him and broke for 100 people lol. I am updating a new patch in nsepython. Install the latest version now.