It looks like you're new here. If you want to get involved, click one of these buttons!
data = kite.generate_session("request_token_here", api_secret="your_secret")
However, I get an error message saying that the token is invalid or expired.
Go through this documentation to understand the whole login flow.