Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting session cookie failed errors. #47

Open
flapjack6260 opened this issue Apr 15, 2020 · 1 comment
Open

Getting session cookie failed errors. #47

flapjack6260 opened this issue Apr 15, 2020 · 1 comment

Comments

@flapjack6260
Copy link

I went into my chrome cookie settings and copied the session cookie from redacted. There doesn't seem to be any documentation anyhwere on where im even supposed to get the session cookie so this was my best guess. I'm getting session cookie failed and too many redirect errors when running redbetter.

@frei0
Copy link

frei0 commented May 29, 2020

After playing around with it, I found that the cookie value needs to be url-encoded. Not sure why the requests library doesn't automatically do this (i'm on python2).

The easiest way to get the urlencoded cookie is to open DevTools Network tab, log a request to the site, and inspect the raw headers. The cookie value in the raw headers will be urlencoded already. (Cookie: session=blahblahblah%3D%3D)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants