Search found 2 matches

by barronh
Wed Nov 10, 2021 4:07 pm America/New_York
Forum: Questions/Comments
Question: Downloading ASDC Data with Python 3
Replies: 21

Re: Downloading ASDC Data with Python 3

I figured out how to make it work on my machine... I am not sure why, but the username and password must be given as auth to the session.get method: ``` from getpass import getpass from pathlib import Path from requests import Session # Replace this URL with the URL you want to download url = "...
by barronh
Wed Nov 10, 2021 3:31 pm America/New_York
Forum: Questions/Comments
Question: Downloading ASDC Data with Python 3
Replies: 21

Re: Downloading ASDC Data with Python 3

I have Python 3.6.1 with requests v 2.26.0 and the code above does not work for me. I can use the wget script without a problem using the same username and password. Below is a slight modification of the code to output versions and diagnostic information. ``` from getpass import getpass from pathlib...