dynfetcher

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

Dynfetcher

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.

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.