[ad_1]
If you want to fetch some website’s HTML content or want to scrap that using JavaScript on browser you may face this error of cors error kuch bhi likho abd
if yiu want to fetch some website html content or want to serap that using
let i = await fetch('https://example.com')
But if you want to avoid the cors error and scrap or fetch or get the HTML of the website. Just like view-source:–websiteURL– . You can use the API Provided by WhollyAPI – https://sh20raj.gitbook.io/whollyapi/
i.e. :- https://whollyapi.vercel.app/api/html?url=
For Example :- https://whollyapi.vercel.app/api/html?url=https://example.com
Now, Let’s Fetch
let i = await fetch(‘https://whollyapi.vercel.app/api/html?url=https://example.com’)
Get More API’s Here :- https://sh20raj.gitbook.io/whollyapi/
[ad_2]
Source link