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
403 Forbidden #23
Comments
I'm also getting a 403 Forbidden since yesterday when trying to log in via Python and wget. |
I'm also experiencing this error. |
Same error here. |
This may be caused by the addition of a CSRF token in the ERS login form. I don't recall that being present before. |
Dear all, |
Can do. I have a working example for no_proxy so I'll change proxy to what I have but can't test it. |
Great ! Thanks a lot ! Please do a pull request when you are ready, i'll try it as soon as possible, and will try to implement the proxy part, at least with CNES's proxy (which is a hard one) |
Although I'm using JAVA Apache to get the Landsat files downloaded, I was facing the same problem there. Here is how I got it running again. Might be helpful for you as well:
Get the information for the csrf token from the response of the GET method.
This gives me a 302, ready for download the files. |
I did a quick fix in case anyone needs this. I'm sure Olivier will make this much cleaner. If you need this going asap this works for me.
|
Thanks a lot Mike, It looks much simpler now, and it works !. |
Here is an alternative using regex (not as robust, but with no external dependency):
Another possible alternative that doesn't require external dependencies is https://docs.python.org/2/library/htmlparser.html |
Nice using regex! I was going to look into that today. |
@mkmitchell |
I am testing the suggestion of dswanepoel, which seems to work well. That will enable to avoid the BeautifulSoup (no Soup in summer ;) ) I will push the new version soon. I still need to test with the proxy version |
Done. |
Dear Mr. Hagolle, |
Is anyone else experiencing 'USGS not currently responding to requests'?
When catching the error it is giving me a 403 Forbidden.
My user name and password are working in Earth Explorer web interface when I try download the exact file using the link LANDSAT-Download generates.
I have logged out of Earth Explorer before using this script as well.
The text was updated successfully, but these errors were encountered: