GithubHelp home page GithubHelp logo

imclab / node.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from node-js-libs/node.io

0.0 1.0 0.0 647 KB

A data scraping and processing framework

Home Page: http://node.io/

License: MIT License

node.io's Introduction

node.io is a distributed data scraping and processing framework

  • Jobs are written in Javascript or Coffeescript and run in Node.JS - jobs are concise, asynchronous and FAST
  • Includes a robust framework for scraping, selecting and traversing data from the web (choose between jQuery or SoupSelect)
  • Includes a data validation and sanitization framework
  • Easily handle a variety of input / output - files, databases, streams, stdin/stdout, etc.
  • Speed up execution by distributing work across multiple processes and (soon) other servers
  • Manage & run jobs through a web interface

Follow @nodeio or visit http://node.io/ for updates.

Scrape example

Let's pull the front page stories from reddit

require('node.io').scrape(function() {
    this.getHtml('http://www.reddit.com/', function(err, $) {
        var stories = [];
        $('a.title').each(function(title) {
            stories.push(title.text);
        });
        this.emit(stories);
    });
});

If you want to incorporate timeouts, retries, batch-type jobs, etc. head over to the wiki for documentation.

Built-in modules

node.io comes with some built-in scraping modules.

Find the pagerank of a domain

$ echo "mastercard.com" | node.io pagerank
   => mastercard.com,7

..or a list of URLs

$ node.io pagerank < urls.txt

Quickly check the http code for each URL in a list

$ node.io statuscode < urls.txt

Grab the front page stories from reddit

$ node.io query "http://www.reddit.com/" a.title

Installation

To install node.io, use npm

$ npm install -g node.io

If you do not have npm or Node.JS, see this page.

Getting started

If you want to create your own scraping / processing jobs, head over to the wiki for documentation, examples and the API.

node.io comes bundled with several modules (including the pagerank example from above). See this page for usage details.

Roadmap

  • Finish writing up the wiki
  • More tests & improve coverage
  • Add distributed processing
  • Fix up the http://node.io/ page
  • Cookie jar for persistent cookies
  • Speed improvements

history.md lists recent changes.

If you want to contribute, please fork/pull.

If you find a bug, please report the issue here.

Credits

node.io wouldn't be possible without

License

(MIT License)

Copyright (c) 2010 Chris O'Hara [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

node.io's People

Contributors

akkuma avatar chriso avatar erkan-yilmaz avatar frederickcook avatar irony avatar jacobsingh avatar jhurliman avatar laurentdebricon avatar ma2rten avatar mhart avatar mmoulton avatar nedzynski avatar willglynn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.