필터 지우기
필터 지우기

Download file using "websave" from a website that requires login

조회 수: 14 (최근 30일)
Abhinav Pandey
Abhinav Pandey 2021년 6월 1일
댓글: Irem Köz 2022년 5월 2일
I am trying to download the following file from NASA's Archive of Space Geodesy Data:
but I am having a hard time downloading the file to my computer using websave because downloading the file requires login information.
When the file download link is clicked, it first redirects to a login page, and when the correct credentials are entered, it then redirects back to the original link (which is the one above) and the file is downloaded. I was wondering whether there is a way to download the file despite the login information and redirection being required. Currently, my code returns an html file of the login page.
Here is the code I am using if it is of any help:
filename = 'RINEXFile.rnx.gz';
fileurl = 'https://cddis.nasa.gov/archive/gnss/data/daily/2021/143/21h/MAR700SWE_R_20211430000_01D_SN.rnx.gz'
websave(filename,fileurl)
  댓글 수: 5
Abhinav Pandey
Abhinav Pandey 2021년 6월 1일
I have not done that yet. I will try asking the adminds for a REST interface.
Irem Köz
Irem Köz 2022년 5월 2일
I wonder whether there is any progress about this problem or not? I also have the same problem with the same website.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by