Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to make use of iframe to pick a particular table and the info it's been populated with from a particular website and make it appear on mine. I only need the table to be iframed. Here's the website: https://realnaps.com/signal

I need to pick the just that table that's been populated with the results. Please, is there anyone who can help with this? When I tried iframe it picked the whole webpage but I don't want the whole webpage, I only want the table that is been populated. Thanks in advance.

This is how the table looks like:

table

question from:https://stackoverflow.com/questions/65649915/how-to-display-a-table-from-another-website-using-iframe

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
161 views
Welcome To Ask or Share your Answers For Others

1 Answer

You will not be able to embed just a portion of a document in an iframe with just HTML.

You will have to write some JS code to poll that site and extract just the desired content.

But, have you noticed that there is a published websocket? You may also try to get the data via JS: wss://realnaps.com:3000/socket.io/?EIO=3&transport=websocket&sid=tXNlXGWrZl-pipLxAMR_


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...