Scraper object

nedonja's picture
Hi Is it possible to use a Scraper object outside Mashup Server environment? I mean, creating a simple javascript function to scrape webpages, and using it from a simple HTML page. Thanks
tyrell's picture

hey, The Scraper object is

hey, The Scraper object is server side javascript, which is Mashup Server specific. What you can do is write a Mashup, which does the scraping and call that mashup from your HTML. Hope this helps, Tyrell
jonathan.wso2.com's picture

+1 to Tyrell, a mashup or

+1 to Tyrell, a mashup or some kind of server-side process is the best way. Cross-site scripting and data access restrictions make client-side scraping unreasonable in the most cases, even if you packaged up a scraper as a Java applet or wrote a scraper in native Javascript.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)