dynfetcher

Simple class for fetching parts of web pages using CSS selectors.

npm install dynfetcher
4 downloads in the last week
8 downloads in the last month

Dynfetcher

Build Status

DynFetcher is a simple library for fetching parts of web pages using CSS selectors.

Fetch weather or TV program or any other data from (X)HTML files in just a few lines using CSS selectors.

Example

DynFetcher = require 'dynfetcher'

dyn = new DynFetcher 'http://ifconfig.me/'

itemData = 
    ip :
        selector : '#ip_address'
        required : on

dyn.find '#info_table', itemData, (err, info) ->
    if err
        console.error err
        return

    console.log info[0]

For latest updates visit project's repository.

Maybe you might find interesting Yahoo! Query Language.

npm loves you