Closed bhishanpdl closed 4 years ago
Just go to any of the XHR request in network tab after logging in to your hackerrank account, the CSRF token and cookie will be present in all of the request headers. If you are unable to find it, I will advice just browse little through the HTTP calls in the network tab and you will be able to find, request headers and these values easily.
I came to this github repo after reading the article on hackernoon and tried to replicate the work.
Following is mentioned there:
I still am not sure how to get the CSRF and cookie from there.
How is my credentials.py looks like?
I am not sure how to get the values of csrf and cookie.
When I right click > inspect > network There is no columns for csrftoken and cookie.
Only there are columns like Name, Status, Type etc. I am very new to the world of world scraping so if this is a very basic question ignore my ignorance.