S
S
Sergey Ch2019-01-25 18:39:59
Parsing
Sergey Ch, 2019-01-25 18:39:59

How to parse data from a page with a ReactJS component?

Good afternoon!
there is such a page:
https://businesses.hiya.com/lookup/1/2486309021
when the page is loaded, the reactjs script sends a request to the server and receives data by phone number, which are then displayed in the table:
5c4b2d7db1177463171304.jpeg
The question is, how to parse this data?
Initially made through phantomjs and everything worked. But then the error started to occur:
- string(95) "Unhandled promise rejection TypeError: undefined is not an object (evaluating 'e.data.message')"
- string(42) " https://businesses.hiya.com/bundle .js:16 "
and there is no way to get the data.
Is there any other way, or has anyone encountered this error before?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2019-01-25
. @Serega67

Open the page in any managed webkit/chromium/firefox based headless browser depending on the programming language you choose.
in your case it will most likely be something like this
https://github.com/GoogleChrome/puppeteer
ps https://github.com/dhamaniasad/HeadlessBrowsers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question