A simple java application that uses the craigslist rss feed to send email alerts based on filters such as,
- Number of beds/baths
- Minimum/Maximum price
- 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.
- Java 1.7
- Maven
mvn clean compile assembly:single
java -jar target/craigslist-alert-0.0.1-SNAPSHOT-jar-with-dependencies.jar /path/to/app_properties.yml
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.
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.
- 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.