0

I'm trying to fetch an URL from another page (need to check if some classes there are available).

Unfortunately, when I get a response from the server and read HTML I don't get full content - some parts are loaded by React after my fetch finishes. Is there any way to get the content without opening this page in another tab?

mario
  • 1
  • 1
    https://stackoverflow.com/questions/54647694/how-to-run-puppeteer-code-in-any-web-browser maybe - looks difficult. A better approach would be to do the scraping on your server, which can fully emulate the page loading – CertainPerformance May 25 '22 at 21:05
  • Don't load the "page", just load the data from the same API as their react application. – Bergi May 25 '22 at 22:24
  • Please provide enough code so others can better understand or reproduce the problem. – Community May 26 '22 at 00:34

1 Answers1

-2

const result = await axios.get("https://randomuser.me/api/")