Python app that polls craigslist on a url or filter and emails any new listings to an email specified.
The poll interval is set to 15 minutes because that is the interval Craigslist uses to push up posts to the rss api.
- Have python 3
- Clone the repo
- Set the following environment variables:
- CPOLL_FROMEMAIL=<email to send from>
- CPOLL_PW=<password for email to send from>
- CPOLL_TOEMAIL=<email to send to>
- Get desired url by searching craigslist for what you want (example: https://phoenix.craigslist.org/search/msg?min_price=100&max_price=200)
- Run main.py from terminal with a -url argument set to the url in quotes
python3 main.py -url "https://phoenix.craigslist.org/search/msg?min_price=100&max_price=200"
- If the email isn't a gmail, edit line 90 of main.py to connect to the correct port
- You may have to allow less secure apps to access your email