Read a table off of a website

15 次查看(过去 30 天)
Abhi
Abhi 2024-10-25,13:23
评论: Abhi 2024-10-29,12:29
I'm trying to read the table of stocks off of this link: https://www.nasdaq.com/market-activity/stocks/aapl/historical?page=8&rows_per_page=10&timeline=y1. I've tried readtable and webread functions but none have given me great results.
  1 个评论
Abhi
Abhi 2024-10-29,12:29
I keep getting this error, is there anything I can do about it?
Error using webread (line 122)
The connection to URL 'https://www.nasdaq.com/market-activity/stocks/aapl/historical?page=8&rows_per_page=10&timeline=y1' timed out after 60.000 seconds. The reason is "Waiting for response header". Perhaps the server is not responding or weboptions.Timeout needs to be set to a higher value.

请先登录,再进行评论。

回答(1 个)

埃博拉酱
埃博拉酱 2024-10-25,13:35
Consider using htmlTree to parse the web page returned from webread.

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by