Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

craigslist-wayback-apa

2.0.0 • Public • Published

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

install

npm i craigslist-wayback-apa

Downloadsweekly downloads

3

version

2.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar