How to get the HTML from a website in react.js

i just want to get the plain html of a website in a variable. Let's say google.com but when i try to do this i get cors errors. Is there any simple way to complete this task ? i just want a return that says hey google.com is exists status code is 200 and here is the html from that page

I just want to get the html like a browser, that simple , but people saying things like you need your own proxy server to reach 3rd party server, I tried lot's of params with axios and fetch , After some search i used various scrapers but the result was the same , i just want a return that says hey google.com is exists status code is 200 and here is the html from that page , how can i do this simply , i dont have too much experience in node.js and react.



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation