WebScrapperJS
WebScrapperJS - Get Content/HTML of any website without being blocked by CORS even using JavaScript by WhollyAPI
Website :- https://sh20raj.github.io/WebScrapperJS/
GitHub | Repl.it | Dev.to Article
Grab the CDN or Download the JavaScript File
<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/WebScrapperJS/WebScrapper.js" ></script>
-
WebScrapper.get()
will return you the content of the provided url in a String. -
WebScrapper.gethtml()
will return you the content of the provided url as Parsed DOM. ( Will get the html and Parse it as a DOM object . Will return you a #Document) -
WebScrapper.getjson()
will return you the content of the provided url as Parsed JSON.
To Get HTML/Text/Content of Any Website in a String.
var html = WebScrapper.get('https://webscrapperjs.sh20raj.repl.co/');//This will be return the HTML/Text inside the webpage in a String.
console.log(html);
This will be return the HTML/Text inside the webpage inโฆ