webread can't read the table of a website

조회 수: 18 (최근 30일)
Wisteria
Wisteria 2025년 12월 18일 3:38
답변: Steven Lord 2025년 12월 19일 4:02
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!

채택된 답변

Rik
Rik 대략 21시간 전
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.
  댓글 수: 1
Wisteria
Wisteria 대략 5시간 전
Thanks for your answer! However, it seems that these 2 links don't contain all the information of the table. Specifically, I want the "size" and "rules" columns which cannot be found in the 2 links (for "rules", I want the hyperlink to the "view" of each line). Can you help me find where these information is hiden, or can you tell me how you find those two links so that I can try to explore myself? Thanks!

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

추가 답변 (1개)

Steven Lord
Steven Lord 대략 4시간 전
Are you trying to read in the data sets? If so I'd look at the "Download Dataset" link in the upper-right corner. Once you have that ZIP file the unzip command will let you access the files archived inside it.
Alternately, you may want to contact the authors and/or maintainers and ask them to help you access that information, if it's not in the ZIP file.

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by