V
V
vipermagi2019-07-25 06:02:25
Parsing
vipermagi, 2019-07-25 06:02:25

How to get javascript data from a web page?

Here is an example of such a page https://www.cmegroup.com/market-data/delayed-quote...
I want to get numbers from tables, preferably without downloading too much. For possible future use in a C++/Qt program or Bash script.
This page is also able to update these numbers once a minute by default.
Normal download via wget does not give any result.
How can this data be extracted in the least labor-intensive manner within the framework of Linux console tools and / or C ++ frameworks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Renat, 2019-07-26
@RenatKZ

If you look through the developer console (f12 / chrome), then the data is "pulled" into the tables via AJAX,
for example, here is the address of the first request (the first table)
https://www.cmegroup.com/CmeWS/mvc/Quotes/FrontMon...
Here is a ready-made JSON, parsing it is nowhere easier, with the possible exception of bash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question