필터 지우기
필터 지우기

download data from https

조회 수: 5 (최근 30일)
Stefano Pietri
Stefano Pietri 2021년 6월 21일
댓글: Image Analyst 2021년 6월 26일
I would like to download data with webread from an https witha formed complex query (without using the basic query options in webread, websave as they would not work).
However I am getting a "Rorbidden" answer and error that does not explain much.
Any ideas?
  댓글 수: 1
Rik
Rik 2021년 6월 21일
Have you checked if the specific website allows non-human access?
Also, how do you expect us to give you a solution if you only tell us you're getting an 'access forbidden' error?

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

답변 (1개)

Amrtanshu Raj
Amrtanshu Raj 2021년 6월 25일
Hi,
As mentioned in the documentation. The Forbidden error is shown when Client does not have the correct credentials to make a request.
Hope this helps.
  댓글 수: 6
Stefano Pietri
Stefano Pietri 2021년 6월 26일
however I can use the following python code and it works:
response = ulib.request.urlopen("https://...")
data = response.read()
Image Analyst
Image Analyst 2021년 6월 26일
You can use Python from MATLAB - there is a webinar on that.

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

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by