Requests cookies simulated login encountered problems

as mentioned above, I tried to use cookies to simulate login to www.jianshu.com, but failed. Come here to find some ideas.

the process of simulation: f12 cookies,cookies network found a little too much, first added all of it, found that it didn"t work.
because I have mastered some basic operations, I can"t think of why, how to do it, how to solve it, and just give me a train of thought.

Code:

   

The

problem has been solved and has been fooled by js again (be sure to remember it next time).
the tag I chose for that page is dynamically added with js, so it's normal to climb nothing. Then I analyzed the page obtained with the crawler and found that the login was successful.

Menu