Skip to content
Switch branches/tags
This branch is 4 commits ahead of VikParuchuri:master.
Fetch upstream

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Craigslist For Sale Alerts

Craigslist For Sale Alerts is a bot that will scrape Craigslist for real-time for sale postings matching specific criteria. When it finds a listing that it hasn't already seen, it will alert you via Slack and/or Email.

It can optionally read from an external JSON list of search URLs so that search criteria can be updated independently.

This project is adapted from apartment finder by Vik Paruchuri.


Look in for the list of configuration options. The options are:

  • LISTING_URLS_JSON - optionally, a URL to a JSON array with the Craigslist searches you want to alert on
  • LISTING_URLS - the harcoded Craigslist searches you want to alert on
  • SLEEP_INTERVAL - How long we should sleep between scrapes of Craigslist in seconds
  • SMTP_SERVER - The SMTP server to use send email alerts
  • SMTP_PORT - The SMTP port to use send email alerts
  • SMTP_USERNAME - The SMTP username to use send email alerts
  • SMTP_PASSWORD - The SMTP password to use send email alerts
  • EMAIL_RECIPIENT - The address where you want to receive email alerts
  • SLACK_TOKEN - The token that allows us to connect to Slack
  • SLACK_CHANNEL - the Slack channel you want the bot to post in
  • DMS_URL - Optional Dead Man's Snitch URL used for monitoring

If using Gmail to send email alerts, some further changes may be required.


# copy all files to server
scp *.py user@domain:/path/to/project/directory
scp listings.db user@domain:/path/to/project/directory

# install modules
pip install -r requirements.txt

# set permissions
chmod +x
chmod +x
chmod +x
chmod +x
chmod +x listings.db

# start as service
nohup python &

# find it again
ps ax | grep

# kill it 
kill -9 process-id


The file is useful for testing your alerts and allows you to easily delete a record from your local database to make sure your alert fires as you expect. Also, it displays the most recent 15 items in your local database for debugging purposes. You must know the Craigslist ID to be able to delete the record.


A Slack/Email bot that helps you find for sale items on Craigslist.




No releases published


No packages published