vsjha18 / nsetools

Realtime Data From National Stock Exchange (India)
http://nsetools.readthedocs.io
MIT License
812 stars 423 forks source link

AttributeError: 'NoneType' object has no attribute 'group' #41

Closed arunsivaraj closed 5 years ago

arunsivaraj commented 5 years ago

Hi All, Since from last friday(11/Jan/2019) I am getting the below error. Earlier my code was working perfect, any idea how to fix it. Thanks!

File "C:\Python36\lib\site-packages\nsetools\nse.py", line 161, in get_quote buffer = match.group(1) AttributeError: 'NoneType' object has no attribute 'group'

sourcedexter commented 5 years ago

I am getting the same error too. I have implemented a re-try strategy for when I catch this exception, but from the looks of it, once this error starts, it continues despite retying several times.

dishantrathi commented 5 years ago

Same Error: Data Link generates HTTP 405 thus we are getting the error.

`File "C:\Python36\lib\site-packages\nsetools\nse.py", line 161, in get_quote
buffer = match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Ref. for Error: http://nseindia.com/live_market/dynaContent/live_watch/get_quote/ajaxGetQuoteJSON.jsp?symbol=[SYMBOL]&series=EQ

Use any Smbol as TCS ; WIPRO ; etc.

dishantrathi commented 5 years ago

Any alternatives to get NSE live quote prices.

sourcedexter commented 5 years ago

We wrote a custom script that scrapes the NSE website and that is working fine! I wasn't able to find any other library.

On Sat, Jan 26, 2019 at 3:08 PM Dishant Rathi notifications@github.com wrote:

Any alternatives to get NSE live quote prices.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/41#issuecomment-457817221, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAeV5OcymyQuJ9rRrX5cs3k6qRxEzoNks5vHCIwgaJpZM4Z9lrj .

-- Regards, Akshay Pai. https://sourcedexter.com email: akshay@sourcedexter.com

dishantrathi commented 5 years ago

We wrote a custom script that scrapes the NSE website and that is working fine! I wasn't able to find any other library. On Sat, Jan 26, 2019 at 3:08 PM Dishant Rathi @.***> wrote: Any alternatives to get NSE live quote prices. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#41 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAeV5OcymyQuJ9rRrX5cs3k6qRxEzoNks5vHCIwgaJpZM4Z9lrj . -- Regards, Akshay Pai. https://sourcedexter.com email: akshay@sourcedexter.com

Can You Provide The Script !

arunsivaraj commented 5 years ago

Thanks all. I wrote custom script to get the data from NSE website.

dishantrathi commented 5 years ago

Thanks all. I wrote custom script to get the data from NSE website.

Share Here !

arunsivaraj commented 5 years ago

@dishantrathi - share me your email id

dishantrathi commented 5 years ago

@arunsivaraj - Here it is : diahantrathi97@gmail.com Thanks !

arunsivaraj commented 5 years ago

diahantrathi97@gmail.com

done!

dishantrathi commented 5 years ago

@arunsivaraj , in a hurry I provided you the wrong email id, sorry for that can you mail me again ... dishantrathi97@gmail.com

arunsivaraj commented 5 years ago

dishantrathi97@gmail.com

No issues, have resend it to your right email id. Cheers!

dishantrathi commented 5 years ago

dishantrathi97@gmail.com

No issues, have resend it to your right email id. Cheers!

Thanks !

JagadeeshBoyidi commented 5 years ago

We wrote a custom script that scrapes the NSE website and that is working fine! I wasn't able to find any other library. On Sat, Jan 26, 2019 at 3:08 PM Dishant Rathi @.***> wrote: Any alternatives to get NSE live quote prices. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#41 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAeV5OcymyQuJ9rRrX5cs3k6qRxEzoNks5vHCIwgaJpZM4Z9lrj . -- Regards, Akshay Pai. https://sourcedexter.com email: akshay@sourcedexter.com

Can You Provide The Script !

Hi Dishantrathi, could you please provide me the script that you written to get the quotes from the stock market.

vsjha18 commented 5 years ago

Issue is fixed please upgrade.

On Thu, 7 Mar 2019 at 9:55 PM, JagadeeshBoyidi notifications@github.com wrote:

We wrote a custom script that scrapes the NSE website and that is working fine! I wasn't able to find any other library. … <#m3364040193190283229> On Sat, Jan 26, 2019 at 3:08 PM Dishant Rathi @.***> wrote: Any alternatives to get NSE live quote prices. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#41 (comment) https://github.com/vsjha18/nsetools/issues/41#issuecomment-457817221>, or mute the thread https://github.com/notifications/unsubscribe-auth/AFAeV5OcymyQuJ9rRrX5cs3k6qRxEzoNks5vHCIwgaJpZM4Z9lrj . -- Regards, Akshay Pai. https://sourcedexter.com email: akshay@sourcedexter.com

Can You Provide The Script !

Hi Dishantrathi, could you please provide me the script that you written to get the quotes from the stock market.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/41#issuecomment-470593923, or mute the thread https://github.com/notifications/unsubscribe-auth/ABuL3LURGL7MBGtpb54RbmehTxl0E3AJks5vUT2QgaJpZM4Z9lrj .