19 thoughts on “Website login using requests library in Python

  1. For those who get headers errors, try to send all the headers for the login, in my case that was necesary.
    Also you can just get the CSRF token from the cookies with this: csfrtoken = r.cookies['csrftoken']
    My question is, now, that I am logged in, how can I get the response from a specific URL of the page?
    Thanks for the great video!

Leave a Reply

Your email address will not be published. Required fields are marked *