Giter Club home page Giter Club logo

craigslist-alerter's Introduction

craigslist-alerter

A simple java application that uses the craigslist rss feed to send email alerts based on filters such as,

  1. Number of beds/baths
  2. Minimum/Maximum price
  3. Rent Control

Note: Based on the parse interval that you have configured, there will be an iniital dealy. This avoids an email storm as soon as the application is started.

Requirements

  • Java 1.7
  • Maven

Usage

mvn clean compile assembly:single
java -jar target/craigslist-alert-0.0.1-SNAPSHOT-jar-with-dependencies.jar /path/to/app_properties.yml

Yaml File Description

feedUrl: The craigslist rss feed url. Example: https://sfbay.craigslist.org/search/sfc/apa?format=rss

parseInterval: The interval in minutes at which the rss feed is parsed. Example: 10 minutes

toEmail: The email to send alerts to.

smtpUsername: SMTP username smtpPassword: SMTP password

smtpServer: SMTP server. Example: smtp.gmail.com

smtpServerPort: SMTP server port.

Filter Options:

bedrooms: Minimum number of bedrooms. Integer value.

bathrooms: Maximum number of bedrooms. Integer value.

minPrice: Minimum rent. Integer value.

maxPrice: Maximum rent. Integer value.

isRencontrolled: Boolean value.

Notes

  • A sample app_properties.yml is included under src/main/resources
  • All the parameters are required.
  • For Gmail SMTP, use smtp.gmail.com as server and 587 as port. Username is your email address and your password.
  • Specify the parseInterval and filter options at an appropriate value to avoid an email storm.

craigslist-alerter's People

Stargazers

 avatar

Watchers

 avatar

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.