rajivgpta / kite-api-autologin

Single file code to autologin into Kite/ Zerodha python API with External TOTP enabled.
6 stars 2 forks source link

Connection refused error #1

Open Akshat4112 opened 1 year ago

Akshat4112 commented 1 year ago

Hi,

I was trying your code to login into Kite via Python code, but it is giving me a connection refused error.

Can you guide me on this issue?

Screenshot from 2023-04-27 12-42-19

SumeetSaharan82 commented 10 months ago

I don't think below code is working. http_session.post(url='https://kite.zerodha.com/api/twofa', data={'user_id':user_id, 'request_id':resp_dict["data"]["request_id"], 'twofa_value':pyotp.TOTP(totp_key).now()}