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

Error : CSRF_Token not found #57

Open
karinahansen opened this issue Nov 6, 2020 · 1 comment
Open

Error : CSRF_Token not found #57

karinahansen opened this issue Nov 6, 2020 · 1 comment

Comments

@karinahansen
Copy link

karinahansen commented Nov 6, 2020

Hi,

I used this code without problems earlier this year. Now I keep getting the error "Error : CSRF_Token not found”. If I change line 68:
m = re.search(r'<input .?name="csrf_token".?value="(.?)"', data)
to
m = re.search(r'<input .
?name="csrf".?value="(.?)"', data)
I don't get the error. But the download still doesn't work.

@olivierhagolle
Copy link
Owner

olivierhagolle commented Nov 12, 2020

Thanks, this solves the token issue, but the whole structure of storage of the LANDSAT site seems to have changed. I have not found yet where the LANDSAT data are stored, with permanent links. I am afraid they have changed to an object based storage wich does not allow to guess the location of data

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