csbrandt / craigslist-wayback-apa

Fetch archived RSS feeds from the craigslist apa section on archive.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM

Fetch archived RSS feeds from the craigslist apa section on archive.org

Installation

$ npm install craigslist-wayback-apa

Function

get(options, cb)

options: object, request options

  • city: where to collect apa feeds
  • start: date to collect feeds from
  • end: date to collect feeds to

cb: Function(error, posts), callback function

  • error: Error, passed when issue encountered requesting feed
  • posts: array, JSON array of posts with the following schema,
    • date
    • title
    • location
    • price
    • bedroom
    • url

Running Tests

Install the development dependencies:

$ npm install

Then run the tests:

$ npm test

Code Coverage

Install the development dependencies:

$ npm install

Then run coverage

$ npm run coverage

View coverage reports

$ firefox coverage/lcov-report/index.html

Browser Bundle

$ npm run build

About

Fetch archived RSS feeds from the craigslist apa section on archive.org


Languages

Language:JavaScript 99.0%Language:HTML 0.7%Language:CSS 0.3%Language:CoffeeScript 0.0%Language:Makefile 0.0%