Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
DynFetcher is a simple library for fetching parts of web pages using CSS selectors.
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
test
vendor
.gitignore
.travis.yml
README.md
package.json

README.md

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.

Something went wrong with that request. Please try again.