A dead simple command line tool to query multiple Craigslist cities (subdomains) and email out new results.
$ npm install craigslist-scout -g
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.
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'
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.
Brian Gonzalez |