Closed SamDurand closed 1 year ago
Thanks for the suggestion, this is a great way to deal with tricky authentication!
I simplified the script to:
import webbrowser
import time
with open("srtm30m_urls.txt", "r") as f:
url_list = f.read().split("\n")
for i, url in enumerate(url_list):
webbrowser.open_new_tab(url)
if i % 100 == 0:
time.sleep(5) # pause 5s every 100 it to avoid rate limiting.
which I think will do much the same thing. And if you're ok with me mentioning you by [your github] name and linking to your github profile let me know and I'll add that attribution to the docs too!
Of course! Thanks for your great work!
I had trouble downloading the USGS data, even with the correct login information and following earthdata's advices.
But once I was authenticated correctly to the earthdata site with my account and was able to download any file manually, this code worked well for me.
Just create a text file from srtm30m_urls.txt (for example) and execute the code below with your paths to the Chrome app and data_urls.txt.