JavaScript Web Grabber is a web application that helps you produce JavaScript codes to automatically get HTML from a web page on the internet and display it on your website or blog. For example, say you want to get the latest MLB scores from cbssports.com, all you need to do is give the site name and the id of the element to the app, then the app provides you with some code to put in the source code of your page, so whenever someone visits your page they get the latest MLB scores directly from cbssports.com.
Typically, getting HTML from other websites is done using PHP, which slows down your server; JavaScript Web Grabber lets you do that with JavaScript without any pressure on your server. Additionally, there’s an option to fall back to traditional method via ajax.
JavaScript Web Grabber allows complex content extraction in a flexible manner; the content can be a full web page or a set of tags.
Upon purchasing this plugin, you will be provided excellent support by script developers, nothing is outsourced.
Retrieving Methods:
JavaScript Web Grabber provides you with three methods, all of which produce the same result.
JSONP – Allows cross domain JSONP access. The requested data will be processed by a remote server and will be sent back to your browser in JSON format. It requires less code than the other methods.
YQL – This method uses the Yahoo Query Language (YQL) Web Service, which enables the app to access Internet data with SQL-like commands. The hourly cap is 2,000 requests/hour per IP, but you can register an API Key with Yahoo to increase it to 20,000 requests/hour per IP.
AJAX – This approach requires cooperation of a PHP script. It is provided in case you want your own server to handle the requests. Once your server gets the data, it will hand it over to your javascript code via ajax. Both scripts will be automatically generated for you.
How to get specific data
The second input in the application interface is the “HTML element” field, which can be used to narrow your selection. To use this feature you need to enter a CSS selector which selects the element you want on the page. In order to find out more about an element on a page you can use a tool like Firebug (many modern browsers have a built-in inspection tool too)
FAQ
Q. How can I get the entire page of a website?
If you leave the “HTML element” field empty, the JSONP and AJAX methods will get the contents of head and body tags of the page. The YQL method will get the contents of body tag, but removes any JavaScript code inside it.
Q. There is a specific piece of HTML that I can’t get using your script.
Some websites load specific contents using AJAX after the structure of the page is loaded. JavaScript Web Grabber will grab static contents from the page, but not JavaScript generated content. In order to get JavaScript generated content, you would have to put that content into a browser-like environment that supports JavaScript and all other host objects that the JavaScript uses so the script could run. This is why most search engines don’t index javascript-generated content. It’s not easy. You may want to examine how the page gets that specific data and see if you can get it directly from that source. For example, if the data is obtained from an Ajax call perhaps you can directly make that Ajax call.
Note
We assumes no responsibility for any abusive use of this software product and/or violation of any terms of usage of the grabbed web pages. If you decide to use this software product, do it with responsibility and make sure that you are allowed to display the grabbed HTML contents from the web page by checking its terms of usage. This software product is sold exclusively on codecanyon.net. Please do not download it from elsewhere.