# koop-craigslist

> A Craigslist provider for koop

Latest version **2.0.0** (published 2017-03-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install koop-craigslist
pnpm add koop-craigslist
yarn add koop-craigslist
bun add koop-craigslist
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-03-14 |
| First published | 2016-05-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Daniel Fenton |
| Maintainers | dmfenton |
| Keywords | koop, provider, real estate, craigslist, apartment listings |

## Links

- npm: https://www.npmjs.com/package/koop-craigslist
- Repository: https://github.com/%3Admfenton/koop-provider-craigslist
- Homepage: https://github.com/dmfenton/koop-provider-craigslist
- Issues: https://github.com/dmfenton/koop-provider-craigslist/issues
- npm.io page: https://npm.io/package/koop-craigslist

## Dependencies (3)

- [koop](https://npm.io/package/koop.md) ^3.4.0
- [config](https://npm.io/package/config.md) ^1.25.1
- [request](https://npm.io/package/request.md) ^2.72.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-03-14
- 1.0.1 — 2017-02-15
- 1.0.0 — 2017-02-14
- 0.5.0 — 2016-05-19
- 0.4.0 — 2016-05-07
- 0.3.1 — 2016-05-04
- 0.3.0 — 2016-05-04
- 0.2.0 — 2016-05-04
- 0.1.0 — 2016-05-04
- 0.0.1 — 2016-05-04
- 0.0.0 — 2016-05-04

## README

# 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
```js
//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}`)
```

---
_Source: https://npm.io/package/koop-craigslist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
