2.0.0 • Published 9 years ago

koop-craigslist v2.0.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
9 years ago

Koop-Craiglists

A provider for the Craigslist Apartment search API

How to use

You can use this as a plugin to an existing Koop server or use the default server or docker implementations.

API

All data can be accessed at http://adapters.koopernetes.com/craigslist/:city/:type/FeatureServer/0

Cities follow the url subdomain for Craigslist (https://washingtondc.craigslist.org/)

e.g.

  • washingtondc
  • philadelphia
  • baltimore

Types:

  • apartments
  • jobs
  • forsale
  • services
  • gigs
  • community

Test it out

Run server:

  • npm install
  • npm start

Example API Query:

  • curl localhost:8080/craigslist/atlanta/apartments/FeatureServer/0/query?returnCountOnly=true

With Docker

  • docker build -t koop-provider-craigslist .
  • docker run -it -p 8080:8080 koop-provider-craigslist

In an existing Koop Server

//clean shutdown
process.on('SIGINT', () => process.exit(0))
process.on('SIGTERM', () => process.exit(0))

// Initialize Koop
const Koop = require('koop')
const koop = new Koop()

// Install the craigslist Provider
const craigslist = require('koop-craigslist')
koop.register(craigslist)

// Start listening for http traffic
const config = require('config')
const port = config.port || 8080
koop.server.listen(port)
console.log(`Koop Craigslist listening on ${port}`)
2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago