My favorites | Sign in
Project Logo
                
Show all Featured downloads:
dine-0.3.1-beta-cli.jar
Links:
Feeds:

dine

... is a multithreaded Java HTTP-Client that can be programmed in Javascript, it currently understands HTML, XML and JSON.

Although there is no stable official release at the moment, dine is already used in productive application environments.

Overview

  1. dine maintains a queue of so called steps written in JavaScript, which control its behavior
  2. for each step, dine will fetch the content of its requested website via HTTP
  3. dine will then convert the website's HTML to XML and make that available to the step code
  4. after that the step can parse the XML, trigger new steps and much more

How does the code look like?

Instead of "Hello World", we'll show the Javascript step code necessary to print the page title of google.com as an example:

createStep({
        getUrl: function( ctx ) {
                return "http://www.google.com";
        },
        run: function( ctx ) {               
                var xml = new XML(  ctx.getResponse() );
                print( "The title of google.com is " + xml..title + ", what a surprise!" );
        }
});

Wanna know more?

Check the Getting started, Tutorials or Samples page!









Hosted by Google Code