필터 지우기
필터 지우기

Yahoo Finance download works

조회 수: 3 (최근 30일)
Wolfgang
Wolfgang 2018년 2월 10일
답변: NISARGA G K 2018년 3월 5일
yahoo finance keeps changing the access all the time. This worked for me today:
username='your_username';
password='your_password';
url = ['https://query1.finance.yahoo.com/v7/finance/download/%5EGSPC?period1=1515598917&period2=1518277317&interval=1d&events=history&crumb=YVRIYBUVW5A'];
data = urlread(url,'post',{username, password});
Can anyone tell me if using "webread" is any better and why?

답변 (1개)

NISARGA G K
NISARGA G K 2018년 3월 5일
I understand that you would like to know how 'webread' is better than 'urlread'. The 'webread' returns data formatted as an internet media type such as JSON, XML, image, or text whereas urlread does not retrieve hyperlink targets and images. The following link would help you understand better
https://github.com/isetbio/RemoteDataToolbox/issues/16

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by