webread can't read the table of a website

10 ビュー (過去 30 日間)
Wisteria
Wisteria 約13時間 前
回答済み: Rik 約6時間 前
Hi, I want to read the table in the left of this website:
I'm using
a=webread("https://booleangenenetworks.math.iastate.edu/")
but the table is hiden inside the source code (line 153) so I can't get the content of the table.
"<table id="rowSelectTable0" onmousedown="toggleSelecting(true)" onmouseup="toggleSelecting(false)"></table>"
How should I get the table?
Thanks!

回答 (1 件)

Rik
Rik 29分 前
The reason is that this data is loaded separately from the rest of the web page.
The data seems to be loaded from these two pages:
  1. https://booleangenenetworks.math.iastate.edu/static/data/pidToTitle.txt
  2. https://booleangenenetworks.math.iastate.edu/static/data/stratification.csv
I found these using the network monitor of my browser. This extra work is an artifact of the modern web, which allows the page itself to be loaded quickly, but also allows editing/updating the data without having to rewrite all pages using this data for display.
You should be able to read these files with webread and do the processing required.

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by