webread can't read the table of a website

14 views (last 30 days)
Wisteria
Wisteria about 24 hours ago
Commented: Wisteria about 1 hour ago
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!

Accepted Answer

Rik
Rik about 17 hours ago
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 Comment
Wisteria
Wisteria about 1 hour ago
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!

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!