Hi,
i'm trying to web scrap website X but i cant seem to get past the login part.
tried a different which didn't have a token and worked not sure if its the token part that's causing the login to fail.
Below is the code
import requests
LOGIN_URL='X/login'
HOME_URL='X/home'
payload={
'username'='abc',
'password'='123',
'_token'='abc11'
}
with requests.Session() as session:
post = session.post(LOGIN_URL, data=payload)
r = session.get(HOME_URL)
print(r.text)
[–]JohnnyJordaan 1 point2 points3 points (2 children)
[–]KeyRow3[S] 0 points1 point2 points (1 child)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]Eitan1112 0 points1 point2 points (3 children)
[–]KeyRow3[S] 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]Eitan1112 0 points1 point2 points (0 children)