ahmedmani
Regular Member
- Feb 4, 2016
- 310
- 44
Soo i finished automate the boring stuff with python course and i started writing few bots just to sharpen my skills and pickup valuable knowledge im trying to scrape some data off websites and i thought why not the site i learned on (udemy.com) im trying to login to the website but no luck i tried using selenium and it detects it easily so i used the requests module however i didnot find the right url to post the login request to and right parameters?? i thought i identify which kind of authentication it uses and build up from there i tried sending a unautherised request in order to get a 401 error and just read the www-authenticate variable in the header but no luck either but viewing the source code i think its a bearer-type authentication??? It sends a csrf something token along with the username and pass how do i obtain that?? I can use bs4 to implement it in my code as every token is newly generated with every account and session?? Anyway i v been strugling for the past week any kind of advice will be HUGELY APPRECIATED and thank you in advance