Coder Social home page Coder Social logo

craigslist-scout's Introduction

craigslist-scout

A dead simple command line tool to query multiple Craigslist cities (subdomains) and email out new results.

Installation

$ npm install craigslist-scout -g

Usage

  Usage: cl-scout [options]

  Options:

    -c, --cities [type]       Comma delimited list of cities (corresponds to craigslist subdomains)
    -q, --query [type]        Search query: https://losangeles.craigslist.org/search/<<search query>>
    -i, --interval [type]     Query every "n" minutes
    -s, --sender [type]       Sender credentials in the form of [email protected]:my_password; set to false to disable email
    -r, --recipients [items]  Comma delimited list of recipients
    -d, --database [type]     LowDB database to store results in
    -e, --seed                Seed your DB before scouting.

Example Query

To search Craigslist in LA, SLO, San Diego, Fresno, Bako, OC, Inland Empire, and Santa Barbara every 30 seconds for "tacoma" and send new results to [email protected] and [email protected] from [email protected]:

cl-scout  --interval 0.5 \
          --cities slo,losangeles,sandiego,fresno,bakersfield,orangecounty,inlandempire,santabarbara \
          --query "cto?maxAsk=10000&query=tacoma&sort=date" \
          --recipients "[email protected],[email protected]" \
          --sender '[email protected]:foobar'

Can't I achieve the same with IFTT?

IFTT uses Craigslist's RSS feed to check for new results, but the problem with that is that Craiglist's RSS feed only updates every hour. I found that I was missing items by 30 minutes, and someone else would snatch the item up.

Author

twitter/brianmgonzalez
Brian Gonzalez

craigslist-scout's People

Contributors

briangonzalez avatar tzmartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

craigslist-scout's Issues

Installation Fails w/ Contextify Error

Trying to install, but it seems that there is a problem with a dependency. I know very little about NodeJS, but it seems that this issue is with Contextify, which has since fixed the issue.

`
npm WARN deprecated [email protected]: This package has been discontinued in favor of lodash@^4.0.0
npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.25","npm":"1.4.21"})
|
[email protected] install /usr/local/lib/node_modules/craigslistscout/node_modules/jsdom/node_modules/contextify
node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 4.2.0-16-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/cssstyle/lib/properties'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/cssstyle/lib/prop
erties']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/cssstyle/lib/properties' }
npm ERR! tar.unpack untar error /home/ptwohig/.npm/hawk/3.1.3/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/json-schema/0.2.2/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/lodash-node/modern/internals'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/lodash-node/modern/intern
als']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/craigslist-scout/node_modules/lodash-node/modern/internals' }
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.2.0-16-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "craigslist-scout" "-g"
npm ERR! cwd /home/ptwohig
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! tar.unpack untar error /home/ptwohig/.npm/lowdb/0.4.2/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/cssstyle/0.2.34/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/jsonpointer/2.0.0/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/generate-function/2.0.0/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/generate-object-property/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/ptwohig/.npm/jodid25519/1.0.2/package.tgz
npm WARN optional dep failed, continuing [email protected]
npm ERR! tar.unpack untar error /home/ptwohig/.npm/jsbn/0.1.0/package.tgz
npm WARN optional dep failed, continuing [email protected]
npm ERR! tar.unpack untar error /home/ptwohig/.npm/asn1/0.2.3/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules' }
npm WARN optional dep failed, continuing [email protected]
npm ERR! tar.unpack untar error /home/ptwohig/.npm/dashdash/1.12.2/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/craigslist-scout/node_modules/jsdom/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend' }
npm ERR! tar.unpack untar error /home/ptwohig/.npm/tweetnacl/0.13.3/package.tgz
npm WARN optional dep failed, continuing [email protected]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ptwohig/npm-debug.log
npm ERR! not ok code 0

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.