How to scrape values from a dynamically loaded web page?

The issue was addressed by finding the API webpage of the main website. Then, I requsted an API-Key via an online form. They provided me an API key for accessing some basic data. However, more data needed a paid membership.

댓글 수: 2

Vinod
Vinod 2020년 10월 9일
편집: Vinod 2020년 10월 9일
Rather than scrape the dynamic page, do they have an API you can use? I looked it up and it appears barchart.com has an API.
Thanks Vinod for your helpful hint. I submitted a form on their webpage requesting access to their API. I assume they will send me an API Key, correct? I am currently awaiting their response and will comment when I tried their Key to fetch the data.

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

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 9일

0 개 추천

Text Analytics toolbox provides an html parser: https://www.mathworks.com/help/textanalytics/ug/parse-html-and-extract-text-content.html. However, if you don't have a toolbox, then you may need to use regexp or textscan().

댓글 수: 1

Thanks for your response. Similar to "urlfiler()" and "webread()", the textscan() does not read the numeric values dynamically loaded to the page. As Vinod noted above, the values should be fetched through the webpage API. I am yet to to try it.

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

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

제품

릴리스

R2018b

질문:

2020년 10월 9일

편집:

2020년 10월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by